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