#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, n, x;
  cin >> t;
  while (t--) {
    cin >> n >> x;
    vector<long long> a(n);
    for (long long i = 0; i < n; ++i) {
      cin >> a[i];
    }
    sort(a.begin(), a.end());
    long long r = n;
    long long sum = 0;
    for (long long i = n - 1; i >= 0; --i) {
      if (a[i] * (r - i) >= x) {
        ++sum;
        r = i;
      }
    }
    cout << sum << endl;
  }
}
