#include <bits/stdc++.h>
using namespace std;
using ll = long long;
vector<ll> a;
int main() {
  ll t;
  cin >> t;
  while (t--) {
    ll n, k;
    cin >> n >> k;
    ll m = n;
    a.clear();
    ll cnt = 0;
    while (m--) {
      ll xx;
      cin >> xx;
      a.push_back(xx);
    }
    sort(a.rbegin(), a.rend());
    ll s = 0;
    for (auto i : a) {
      s++;
      if (s * i >= k) {
        cnt++;
        s = 0;
      }
    }
    cout << cnt << '\n';
  }
}
