#include <bits/stdc++.h>
using namespace std;
void online_judge() {}
void ISO() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
int main() {
  ISO();
  online_judge();
  int t;
  cin >> t;
  while (t--) {
    long long int n;
    long long y;
    cin >> n >> y;
    long long ans = 0;
    long long int a[n];
    for (int i = 0; i < n; ++i) {
      long long int k;
      cin >> k;
      a[i] = k;
    }
    sort(a, a + n);
    for (int i = 1; i < n; ++i) {
      if (a[i] > y) {
        break;
      } else {
        ans += (y - a[i]) / a[0];
      }
    }
    cout << ans << "\n";
  }
  cerr << "Time elapsed: " << clock() / 1000 << " ms" << endl;
  return 0;
}
