#include <bits/stdc++.h>
const long long maxn = 2e5 + 50;
const long long INF = 0x3f3f3f3f;
using namespace std;
long long a[1004];
signed main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long t;
  cin >> t;
  while (t) {
    t--;
    long long n, k;
    cin >> n >> k;
    long long ans = 0;
    long long minn = INF;
    long long cnt;
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] < minn) {
        minn = a[i];
        cnt = i;
      }
    }
    for (long long i = 0; i < n; i++) {
      long long temp = (k - a[i]) / minn;
      if (i != cnt) ans += temp;
    }
    cout << ans << '\n';
  }
  return 0;
}
