#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T--) {
    int n, x;
    cin >> n >> x;
    vector<int> v;
    for (int i = 0; i < n; i++) {
      int y;
      cin >> y;
      v.push_back(y);
    }
    sort(v.rbegin(), v.rend());
    int p = 0, s = 0, r = 0;
    for (int i = 0; i < n; i++) {
      p++;
      if (p * v[i] >= x) {
        s++;
        p = 0;
        r = 1;
      }
    }
    if (r == 0) {
      cout << 0 << endl;
    } else
      cout << s << endl;
  }
}
