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