#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, x, ans = 0, j = 0;
    cin >> n >> x;
    vector<long long int> a(n);
    for (long long int i = 0; i < n; i++) cin >> a[i];
    sort(a.rbegin(), a.rend());
    for (long long int i = 0; i < n; i++) {
      if (a[i] > x) {
        ans++;
        j = i + 1;
      } else {
        if ((i - j + 1) >= ceil(double(x) / double(a[i]))) {
          ans++;
          j = i + 1;
        }
      }
    }
    cout << ans << endl;
  }
}
