#include <bits/stdc++.h>
using namespace std;
const int maxN = 1e5 + 10;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(nullptr);
  int t;
  cin >> t;
  while (t--) {
    int n, x, a[maxN], cur = 1, res = 0;
    cin >> n >> x;
    for (int i = 1; i <= n; ++i) cin >> a[i];
    sort(a + 1, a + 1 + n, greater<int>());
    for (int i = 1; i <= n; ++i) {
      if (cur * a[i] >= x) {
        res++;
        cur = 0;
      }
      cur += 1;
    }
    cout << res << '\n';
  }
}
