#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  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];
    }
    sort(a, a + n, greater<int>());
    int team = 0;
    int start = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] >= x) {
        team++;
        start = i + 1;
      } else {
        if (a[i] * (i - start + 1) >= x) {
          team++;
          start = i + 1;
        }
      }
    }
    cout << team << "\n";
  }
  return 0;
}
