#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  long long int x;
  cin >> n >> x;
  long long int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  ;
  sort(a, a + n, greater<int>());
  int ans = 0;
  int curr_len = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] >= x) {
      ans++;
      continue;
    }
    curr_len++;
    if (curr_len * a[i] >= x) ans++, curr_len = 0;
  }
  cout << ans << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
