#include <bits/stdc++.h>
#pragma GCC optimize "03"
using namespace std;
const long long int inf = 1e15;
const long long int MOD = 1e9 + 7;
const long long int N = 2e5 + 5;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, x;
    cin >> n >> x;
    long long int a[n];
    for (long long int i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n, greater<long long int>());
    long long int c = 0, s = 0, cnt = 0, mn = inf;
    for (long long int i = 0; i < n; i++) {
      mn = min(mn, a[i]);
      cnt++;
      if (mn * cnt >= x) {
        mn = inf;
        cnt = 0;
        c++;
      }
    }
    cout << c << '\n';
  }
  return 0;
}
