#include <bits/stdc++.h>
using namespace std;
const int N = 100010;
int a[N];
bool cmp(int a, int b) { return a > b; }
int main() {
  int t;
  cin >> t;
  while (t--) {
    memset(a, 0, sizeof a);
    int n, x;
    cin >> n >> x;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
    }
    sort(a + 1, a + n + 1, cmp);
    int len = 1, res = 0;
    for (int i = 1; i <= n; i++) {
      if (a[i] * len >= x) {
        len = 1;
        res++;
      } else
        len++;
    }
    cout << res << endl;
  }
}
