#include <bits/stdc++.h>
using namespace std;
const int M = 1e5 + 7;
int a[M];
void display() {
  cout << "Working"
       << "\n";
  ;
}
void solve() {
  int n, k;
  cin >> n >> k;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int res = 0;
  for (int i = 1; i < n; i++) res += (k - a[i]) / a[0];
  cout << res << "\n";
  ;
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
