#include <bits/stdc++.h>
using namespace std;
int32_t main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t = 1;
  cin >> t;
  while (t--) {
    long long int n, m, k;
    cin >> n >> k;
    long long int ar[n];
    long long int min_1 = INT_MAX;
    for (long long int i = 0; i < n; i++) {
      cin >> ar[i];
      min_1 = min(min_1, ar[i]);
    }
    long long int count = 0;
    long long int pos;
    for (long long int i = 0; i < n; i++) {
      if (ar[i] == min_1) {
        pos = i;
        break;
      }
    }
    for (long long int i = 0; i < n; i++) {
      if (i != pos) {
        count += ((k - ar[i]) / min_1);
      }
    }
    cout << count << "\n";
  }
  return 0;
}
