#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n, x;
    cin >> n >> x;
    long long arr[n];
    for (long long i = 0; i < n; i++) cin >> arr[i];
    sort(arr, arr + n);
    long long cnt = 0;
    long long ans = 0;
    for (long long i = n - 1; i >= 0; i--) {
      cnt++;
      if (arr[i] * cnt >= x) {
        ans++;
        cnt = 0;
      }
    }
    cout << ans << "\n";
  }
  return 0;
}
