#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
void inout() {}
int main() {
  fast();
  inout();
  int t;
  cin >> t;
  while (t--) {
    long long int n, x;
    cin >> n >> x;
    vector<long long int> v(n);
    for (long long int i = 0; i < n; i++) cin >> v[i];
    sort(v.begin(), v.end());
    long long int np = 1;
    long long int teams = 0;
    for (long long int j = n - 1; j >= 0; j--) {
      if (v[j] >= x)
        teams++;
      else {
        np++;
        j--;
        while (v[j] * np < x && j >= 0) {
          np++;
          j--;
        }
        if (v[j] * np >= x && j >= 0) teams++;
        np = 1;
      }
    }
    cout << teams << "\n";
  }
}
