#include <bits/stdc++.h>
using namespace std;
int main() {
  long long tt;
  cin >> tt;
  for (long long sgg = 0; sgg < tt; ++sgg) {
    long long siz;
    cin >> siz;
    long long skill;
    cin >> skill;
    long long sad = 0, S = 0, P = 0;
    vector<long long> inp(siz);
    for (long long i = 0; i < siz; ++i) {
      cin >> inp[i];
    }
    sort(inp.begin(), inp.end());
    reverse(inp.begin(), inp.end());
    long long ans = 0;
    for (long long i = 0; i < siz; ++i) {
      if (inp[i] >= skill) {
        ans++;
      } else {
        sad++;
        if (inp[i] * sad >= skill) {
          sad = 0;
          ans++;
        }
      }
    }
    cout << ans << endl;
  }
  return 0;
}
