#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int n, k;
    cin >> n >> k;
    int s = 0;
    vector<int> v;
    for (int j = 0; j < n; j++) {
      int x;
      cin >> x;
      v.push_back(x);
    }
    sort(v.begin(), v.end());
    for (int j = 1; j < n; j++) {
      v[j] = k - v[j];
      if (v[j] > 0) s = s + (v[j] / v[0]);
    }
    cout << s << "\n";
  }
}
