#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long long n, x;
    cin >> n >> x;
    vector<long long> v(n);
    for (int i = 0; i < n; i++) {
      cin >> v[i];
    }
    sort(v.begin(), v.end());
    long long cnt = 1, i = n - 1, team = 0;
    while (i >= 0 && v[i] > x) {
      ++team;
      --i;
    }
    for (; i >= 0; --i) {
      if (cnt * v[i] >= x) {
        cnt = 0;
        ++team;
      }
      ++cnt;
    }
    cout << team << "\n";
  }
}
