#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, m;
  cin >> n >> m;
  vector<int> arr(n);
  bool cannot = false;
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
    if (arr[i] >= m) {
      cannot = true;
    }
  }
  int ans = 0;
  sort(arr.begin(), arr.end());
  int mn = arr[0];
  for (int i = 1; i < n; ++i) {
    int req = m - arr[i];
    ans += req / mn;
  }
  cout << ans << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tc = 1;
  cin >> tc;
  while (tc--) {
    solve();
  }
  return 0;
}
