#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, k;
    cin >> n >> k;
    vector<long long int> v(n);
    for (long long int i = 0; i < n; i++) {
      cin >> v[i];
    }
    sort(v.begin(), v.end());
    long long int ans = 0;
    long long int last = false;
    for (long long int i = n - 1; i > 0; i--) {
      long long int diff = (k - v[i]);
      ans = ans + (diff / v[0]);
      long long int fac = (diff / v[0]);
    }
    cout << ans << "\n";
  }
}
