#include <bits/stdc++.h>
using namespace std;
int candy[1000];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  int n, k, count;
  while (t--) {
    cin >> n >> k;
    for (int i = 0; i < n; i++) cin >> candy[i];
    sort(candy, candy + n);
    count = 0;
    for (int i = 1; i < n; i++) {
      if (k - candy[i] > 0)
        count += (k - candy[i]) / candy[0];
      else
        break;
    }
    cout << count << "\n";
  }
  return 0;
}
