#include <bits/stdc++.h>
using namespace std;
long long int m, n, c, d, j, k, l, r, u, z, i, e, f, g, h, a = 1, b, t, x, y;
int main() {
  cin >> t;
  while (t--) {
    cin >> n >> k;
    long long int a[n + 1];
    c = 0;
    for (i = 1; i <= n; i++) cin >> a[i];
    sort(a + 1, a + n + 1);
    for (i = 2; i <= n; i++) {
      d = k - a[i];
      e = d / a[1];
      c += e;
    }
    cout << c << endl;
  }
}
