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