#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, k, minszam = INT_MAX, mo = 0;
    cin >> n >> k;
    vector<int> v;
    bool b = false;
    for (int i = 0; i < n; i++) {
      int input;
      cin >> input;
      v.push_back(input);
      minszam = min(minszam, input);
    }
    for (int i : v) {
      if (i == minszam && !b) {
        b = true;
        continue;
      }
      int a = k - i;
      mo += a / minszam;
    }
    cout << mo << endl;
  }
  return 0;
}
