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