#include <bits/stdc++.h>
using namespace std;
const long double Pi = 3.141592653;
const unsigned long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  cin >> t;
  while (t--) {
    int n, k;
    cin >> n >> k;
    int a[n];
    int cnt = 0, f = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] > k) {
        cnt = 0;
        f = 1;
      }
    }
    if (f == 1) {
      cout << 0 << "\n";
      continue;
    } else {
      sort(a, a + n);
      for (int i = 1; i < n; i++) {
        if (k > a[i]) {
          cnt += (k - a[i]) / a[0];
        }
      }
      cout << cnt << "\n";
    }
  }
  return 0;
}
