#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using pi = pair<int, int>;
void setIO(string name = "1380C") {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  freopen((name + ".in").c_str(), "r", stdin);
  freopen((name + ".out").c_str(), "w", stdout);
}
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 c;
      cin >> c;
      v.push_back(c);
    }
    sort(begin(v), end(v));
    int peo = 0;
    int minVal;
    int count = 0;
    for (int i = n - 1; i >= 0; i--) {
      peo++;
      minVal = v[i];
      if (minVal * peo >= x) {
        count++;
        peo = 0;
      }
    }
    cout << count << "\n";
  }
}
