#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, k;
    cin >> n >> k;
    vector<int> v(n);
    int i, j;
    for (i = 0; i < n; i++) cin >> v[i];
    sort(v.begin(), v.end());
    int ans = 0;
    for (i = n - 1; i >= 1; i--) {
      ans += (k - v[i]) / v[0];
    }
    cout << ans << endl;
  }
}
