#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, i, n, k;
  cin >> t;
  while (t--) {
    cin >> n >> k;
    int res = 0, ans;
    vector<int> a(n);
    for (i = 0; i < n; i++) cin >> a[i];
    sort(a.begin(), a.end());
    for (i = n - 1; i > 0; i--) {
      ans = (k - a[i]) / a[0];
      res += ans;
    }
    cout << res << endl;
  }
  return 0;
}
