#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, k;
  cin >> n >> k;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int m = 1;
  int team = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (a[i] * m >= k) {
      team++;
      m = 1;
    } else {
      m++;
    }
  }
  cout << team << "\n";
}
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) solve();
  return 0;
}
