#include <bits/stdc++.h>
using namespace std;
void print(vector<long long> v) {
  cout << "Contents of vector:\n";
  for (auto x : v) cout << x << " ";
  cout << '\n' << '\n';
}
void solve() {
  int n, k;
  cin >> n >> k;
  vector<int> v(n);
  int mini = INT_MAX, ind = -1;
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    if (mini > v[i]) {
      mini = v[i];
      ind = i;
    }
  }
  int ans = 0;
  for (int i = 0; i < n; i++) {
    if (i == ind) continue;
    int t = k - v[i];
    ans += t / mini;
  }
  cout << ans << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int T;
  cin >> T;
  for (int it = 1; it <= T; it++) {
    solve();
  }
}
