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