#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  cin >> t;
  while (t--) {
    long long n, x;
    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 ans = 0, skill = 0, len = 1;
    for (long long i = n - 1; i >= 0; i--) {
      skill = a[i];
      if (skill * len >= x) {
        ans++;
        len = 1;
      } else {
        len++;
      }
    }
    cout << ans << "\n";
  }
  return 0;
}
