#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long T;
  cin >> T;
  while (T--) {
    long long n, k;
    cin >> n >> k;
    long long arr[n];
    for (long long i = 0; i < n; i++) {
      cin >> arr[i];
    }
    sort(arr, arr + n);
    long long p = arr[0];
    long long count = 0;
    for (long long i = 1; i < n; i++) {
      count += (k - arr[i]) / p;
    }
    cout << count << "\n";
  }
}
