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