#include <bits/stdc++.h>
using namespace std;
int main() {
  short T;
  short i;
  string res = "";
  cin >> T;
  for (short j = 0; j < T; j++) {
    short n, k;
    cin >> n >> k;
    int* arr = new int[n];
    for (i = 0; i < n; i++) {
      cin >> arr[i];
    }
    sort(arr, arr + n);
    i = 0;
    int counter = 0;
    for (i = 1; i < n; i++) {
      if (arr[i] + arr[0] > k) {
        break;
      }
      while (arr[i] + arr[0] <= k) {
        arr[i] += arr[0];
        counter++;
      }
    }
    res += to_string(counter);
    if (j < T - 1) {
      res += "\n";
    }
    delete[] arr;
  }
  cout << res;
  return 0;
}
