#include <bits/stdc++.h>
using namespace std;
const long long int inf = 9e18;
const long double pi = 2 * acos(0.0);
long long int arr[100005];
void solve() {
  long long int n, k;
  cin >> n >> k;
  ;
  for (int i = 0; i < n; i++) cin >> arr[i];
  ;
  long long int mn = inf, pos = 0;
  for (long long int i = 0; i < n; ++i) {
    if (arr[i] < mn) {
      mn = arr[i];
      pos = i;
    }
  }
  long long int ans = 0;
  for (long long int i = 0; i < n; ++i) {
    if (i == pos) continue;
    long long int t = abs(k - arr[i]);
    ans += (t / mn);
  }
  cout << ans << "\n";
  return;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int tc = 1;
  cin >> tc;
  while (tc--) {
    solve();
  }
}
