#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 1;
void solve() {
  int n, x;
  cin >> n >> x;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a.begin(), a.end(), greater<int>());
  int ans = 0;
  int j = 1;
  for (int i = 0; i < n; i++) {
    if ((x + a[i] - 1) / a[i] == j) {
      ans++;
      j = 1;
    } else
      j++;
  }
  cout << ans << endl;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
