#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  for (int j = 0; j < t; ++j) {
    int n, k;
    cin >> n >> k;
    int a[n];
    for (int i = 0; i < n; ++i) cin >> a[i];
    sort(a, a + n);
    int count = 0;
    if (a[0] > k) {
      cout << 0 << endl;
      continue;
    }
    int l = 0;
    int tmp = 0;
    for (int i = 0; i < n; ++i) {
      if (i == l) continue;
      tmp = k - a[i];
      tmp = tmp / a[l];
      count += tmp;
      a[i] = tmp * a[l];
    }
    cout << count << endl;
  }
  return 0;
}
