#include <bits/stdc++.h>
using namespace std;
bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.second < b.second);
}
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int T;
  cin >> T;
  while (T--) {
    long long int n;
    long long int x;
    cin >> n >> x;
    vector<long long int> arr(n, 0);
    for (long long int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    sort(arr.begin(), arr.end());
    long long int counta = 0;
    for (long long int i = n - 1; i >= 0; i--) {
      long long int k = 1;
      long long int mini = arr[i];
      while ((mini * k) < x) {
        k++;
        i--;
        if (i == -1) break;
        mini = arr[i];
      }
      if (i != -1) counta++;
    }
    cout << counta << "\n";
  }
  return 0;
}
