#include <bits/stdc++.h>
using namespace std;
long long n, m, x, z, cnt, ans;
vector<long long> v;
int main() {
  cin >> n;
  for (long long i = 1; i <= n; i++) {
    cin >> x >> z;
    for (long long j = 1; j <= x; j++) {
      cin >> m;
      v.push_back(m);
    }
    sort(v.begin(), v.end());
    for (long long j = 1; j < v.size(); j++) {
      cnt = z - v[j];
      ans += cnt / v[0];
    }
    cout << ans << "\n";
    ans = 0;
    v.clear();
  }
}
