#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t) {
    int n, x;
    cin >> n >> x;
    long long int arr[n], count = 0, minimum = -1, teams = 0;
    for (int i = 0; i < n; i++) cin >> arr[i];
    sort(arr, arr + n, greater<int>());
    for (int i = 0; i < n; i++) {
      minimum = arr[i];
      count++;
      if ((minimum * count) >= x) {
        teams++;
        count = 0;
      }
    }
    cout << teams << endl;
    t--;
  }
}
