#include <bits/stdc++.h>
using namespace std;
int getBits(long long int num) { return (int)log2(num) + 1; }
vector<int> gV(int n) {
  vector<int> v;
  int input;
  for (int i = 0; i < n; i++) {
    cin >> input;
    v.push_back(input);
  }
  return v;
}
int* gA(int n) {
  int* arr = new int[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  return arr;
}
void solve() {
  long long int n, x;
  cin >> n >> x;
  vector<long long int> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  int teamSize = 0, teams = 0;
  sort(v.rbegin(), v.rend());
  for (auto i : v) {
    teamSize++;
    if (i * teamSize >= x) {
      teams++;
      teamSize = 0;
    }
  }
  cout << teams << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  std::cin.tie(NULL);
  std::cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    solve();
  };
  return 0;
}
