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