#include <bits/stdc++.h>
using namespace std;
int dx8[] = {0, 0, 1, 1, 1, -1, -1, -1};
int dy8[] = {1, -1, 1, -1, 0, 0, -1, 1};
int dx4[] = {0, 0, 1, 1};
int dy4[] = {1, -1, 1, -1};
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, x, c = 1, ans = 0;
    cin >> n >> x;
    long long a[n + 1];
    for (int i = 1; i <= n; i++) cin >> a[i];
    sort(a + 1, a + n + 1);
    for (int i = n; i >= 1; i--) {
      if ((a[i] * c) >= x)
        ans++, c = 1;
      else
        c++;
    }
    cout << ans << endl;
  }
  return 0;
}
