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