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