#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  int n, k;
  for (int i = 0; i < t; ++i) {
    cin >> n >> k;
    vector<int> s(n);
    for (int j = 0; j < n; ++j) {
      cin >> s[j];
    }
    sort(s.begin(), s.end());
    long long Nmin = s[0], count = 0;
    for (int l = 1; l < n; ++l) {
      if (k >= s[l]) count += (k - s[l]) / Nmin;
    }
    cout << count << "\n";
  }
  return 0;
}
