#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, x;
  cin >> n >> x;
  vector<long long> arr(n);
  for (long long i = 0; i < n; i++) cin >> arr[i];
  sort(arr.rbegin(), arr.rend());
  long long cnt = 0;
  long long start = -1;
  for (long long i = 0; i < n; i++) {
    if ((i - start) * arr[i] >= x) {
      cnt++;
      start = i;
    }
  }
  cout << cnt << '\n';
  return;
}
int32_t main() {
  cin.tie(NULL);
  ios::sync_with_stdio(false);
  long long t;
  cin >> t;
  while (t--) solve();
  return 0;
}
