#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n, x;
    cin >> n >> x;
    long long a[n];
    for (long long i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n);
    long long ans = 0;
    long long j = n - 1;
    while (j >= 0 && a[j] >= x) {
      ans++;
      j--;
    }
    for (long long i = j; i >= 0; i--) {
      long long c = 1;
      while (i >= 0 && c * a[i] < x) {
        c++;
        i--;
      }
      if (i > -1 && a[i] * c >= x) ans++;
    }
    cout << ans << "\n";
  }
}
