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