#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string author = "gagan_sharma gagansh7171@gmail.com";
  int t, n, k, te;
  int test = 0;
  cin >> t;
  while (t--) {
    cin >> n >> k;
    vector<int> a;
    for (int i = 0; i < n; i++) {
      cin >> te;
      a.push_back(te);
    }
    int mini = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] < a[mini]) mini = i;
    }
    int small = a[mini];
    a.erase(a.begin() + mini);
    int sum = 0;
    for (auto i = a.begin(); i != a.end(); i++) {
      *i = k - *i;
      sum += *i / small;
    }
    cout << sum << "\n";
  }
  return 0;
}
