#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    long long n, x, sum;
    cin >> n >> x;
    vector<long long> a(n);
    for (int i = 0; i < n; i++) cin >> a[i];
    sort(a.begin(), a.end());
    int cnt = 0, j = 1;
    for (int i = n - 1; i >= 0; i--) {
      sum = a[i] * j;
      j++;
      if (sum >= x) {
        sum = 0;
        cnt++;
        j = 1;
      }
    }
    cout << cnt << endl;
  }
  return 0;
}
