#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n, ans = 0;
    cin >> n;
    long long x, t;
    cin >> x;
    vector<long long> a;
    for (int i = 0; i < n; i++) {
      cin >> t;
      if (t >= x)
        ans++;
      else
        a.push_back(t);
    }
    if (a.size() < 2) {
      cout << ans << endl;
      continue;
    }
    sort(a.begin(), a.end());
    vector<long long>::iterator itr = a.begin();
    while (1) {
      t = ((x - 1) / (*itr)) + 1;
      while (t > a.size()) {
        a.erase(itr);
        if (a.size() == 0) break;
        itr = a.begin();
        t = ((x - 1) / (*itr)) + 1;
      }
      if (a.size() == 0) break;
      itr++;
      for (int i = 1; i < t; i++) {
        if (t - i >= ((x - 1) / (*itr)) + 1) {
          a.erase(a.begin(), itr);
          itr = a.begin();
          t = i + ((x - 1) / (*itr)) + 1;
        }
        itr++;
      }
      ans++;
      a.erase(a.begin(), itr);
      if (a.size() == 0) break;
      itr = a.begin();
    }
    cout << ans << endl;
  }
  return (0);
}
