#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    long long int n, x, size = 0, ans = 0;
    cin >> n >> x;
    vector<long long int> v(n);
    for (long long int i = 0; i < n; i++) cin >> v[i];
    sort(v.rbegin(), v.rend());
    for (long long int i = 0; i < n; i++) {
      size++;
      if (v[i] * size >= x) {
        ans++;
        size = 0;
      }
    }
    cout << ans << endl;
  }
}
