#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
vector<long long> adj[1000001];
long long v[1000001] = {0};
int32_t main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n, x, c = 1, d = 0;
    cin >> n >> x;
    vector<long long> a(n);
    for (long long i = 0; i < n; i++) cin >> a[i];
    sort(a.begin(), a.end());
    long long i = n - 1;
    while (i >= 0) {
      if (a[i] * c >= x) {
        c = 1;
        d++;
      } else if (a[i] * c < x) {
        c++;
      }
      i--;
    }
    cout << d << "\n";
  }
}
