#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n, k;
    cin >> n >> k;
    vector<long long> a(n);
    long long mn = 1e5;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] < mn) {
        mn = a[i];
      }
    }
    long long ans = 0;
    bool is_mn = false;
    for (int i = 0; i < n; i++) {
      if (a[i] == mn && not is_mn) {
        is_mn = true;
        continue;
      }
      while (a[i] + mn <= k) {
        a[i] += mn;
        ans++;
      }
    }
    cout << ans << "\n";
  }
}
