#include <bits/stdc++.h>
using namespace std;
int T, n, k, sum, arr[10010];
int main() {
  cin >> T;
  while (T--) {
    cin >> n >> k;
    memset(arr, 0, n);
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    sort(arr, arr + n);
    sum = 0;
    for (int i = 1; i < n; i++) {
      sum += (k - arr[i]) / arr[0];
    }
    cout << sum << '\n';
  }
}
