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