#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c, d, i, j, k, l, p, q, r = 0, s = 1;
  scanf("%lld", &d);
  while (d--) {
    scanf("%lld %lld", &a, &b);
    long long int arr1[a + 5], arr2[a + 5], arr3[a + 5];
    for (i = 1; i <= a; i++) {
      scanf("%lld", &arr3[i]);
    }
    sort(arr3 + 1, arr3 + a + 1);
    r = 0;
    s = 0;
    for (i = a; i >= 1; i--) {
      s++;
      if (b <= s * arr3[i]) {
        r++;
        s = 0;
      }
    }
    printf("%lld\n", r);
  }
  return 0;
}
