#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int t = 1;
  cin >> t;
  while (t--) {
    int n, c = 1, x = 0, k;
    cin >> n >> k;
    int i;
    long long int a[n];
    for (i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n, greater<long long int>());
    long long int mi = 1000000000000;
    vector<long long int> v;
    for (i = 0; i < n; i++) {
      v.push_back(a[i]);
      mi = min(a[i], mi);
      if (mi * v.size() >= k) {
        x++;
        mi = 1000000000000;
        v.clear();
      }
    }
    cout << x << endl;
  }
  return 0;
}
