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