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