#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long int n, x, c = 0;
    cin >> n >> x;
    vector<long long int> v(n);
    for (int i = 0; i < n; i++) {
      cin >> v[i];
    }
    sort(v.begin(), v.end());
    for (int i = n - 1; i >= 0; i--) {
      if (v[i] >= x) {
        c++;
      } else {
        long long int k = 1;
        while (v[i] * k < x && i >= 0) {
          k++;
          i--;
          v[i] * k;
        }
        if (v[i] * k >= x && i >= 0) {
          c++;
        }
      }
    }
    cout << c << endl;
  }
}
