#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, k;
    cin >> n >> k;
    int arr[n];
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    sort(arr, arr + n);
    int c = 0;
    for (int i = 1; i < n; i++) c += ((k - arr[i]) / arr[0]);
    cout << c << endl;
  }
  return 0;
}
