#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];
    sort(a, a + n);
    int c = 0, num = 0;
    for (int i = n - 1; i >= 0; i--) {
      num++;
      if (a[i] * num >= x) {
        c++;
        num = 0;
      }
    }
    cout << c << "\n";
  }
  return 0;
}
