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