#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n, m, x, y, z, v, d, i, j, k, sum, t, ans, Q;
  cin >> t;
  while (t--) {
    cin >> n >> x;
    long long a[n];
    for (i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n);
    long long cnt = 1, mn = a[n - 1];
    ans = 0;
    for (i = n - 1; i >= 0; i--) {
      mn = min(mn, a[i]);
      if (mn * cnt >= x) {
        ans++;
        cnt = 1;
        continue;
      }
      cnt++;
    }
    cout << ans << endl;
  }
}
