#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];
    for (int i = 0; i < n; ++i) cin >> arr[i];
    int min = 1000000000;
    int pos;
    for (int i = 0; i < n; ++i) {
      if (arr[i] < min) {
        min = arr[i];
        pos = i;
      }
    }
    int sum = 0;
    for (int i = 0; i < n; ++i) {
      if (i != pos) {
        sum += ((k - arr[i]) / min);
      }
    }
    if (sum >= 0)
      cout << sum << "\n";
    else
      cout << "0\n";
  }
}
