#include <bits/stdc++.h>
using namespace std;
void MAIN() {
  int n, k;
  cin >> n >> k;
  int a[n], i;
  for (i = 0; i < n; i++) cin >> a[i];
  int count = 0;
  sort(a, a + n, greater<int>());
  for (i = 0; i < n - 1; i++) {
    while (a[i] + a[n - 1] <= k) {
      a[i] += a[n - 1];
      count++;
    }
  }
  cout << count << endl;
}
int main() {
  int t;
  cin >> t;
  while (t--) MAIN();
  return 0;
}
