#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 1e5 + 5;
const long long mod = 998244353;
long long pw(long long b, long long r, long long md) {
  long long ans = 1;
  while (r) {
    if (r & 1) ans = (ans * b) % md;
    b = (b * b) % md;
    r >>= 1;
  }
  return ans;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n, k;
    cin >> n >> k;
    long long arr[n];
    for (long long i = 0; i <= n - 1; ++i) cin >> arr[i];
    sort(arr, arr + n);
    long long ans = 0;
    for (long long i = 1; i <= n - 1; ++i) {
      ans += (k - arr[i]) / arr[0];
    }
    cout << ans << '\n';
  }
  return 0;
}
