#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, k;
    cin >> n >> k;
    int lowest = k + 1;
    int a[n];
    for (int& entry : a) {
      cin >> entry;
      if (entry < lowest) lowest = entry;
    }
    int result = 0;
    for (int entry : a) {
      result += (k - entry) / lowest;
    }
    result -= (k - lowest) / lowest;
    cout << result << endl;
  }
}
