#include <bits/stdc++.h>
using namespace std;
long long skill[100001];
long long x;
int t;
int n;
long long atSkill(long long i) {
  if (i <= n)
    return skill[i];
  else
    return -1;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> t;
  while (t--) {
    cin >> n >> x;
    for (int i = 0; i < n; ++i) cin >> skill[i];
    sort(skill, skill + n);
    skill[n] = 0;
    for (int i = n - 1; i >= 0; --i) {
      long long ileDoNastepnego = skill[i + 1];
      long long iluTakich;
      if (x % skill[i] == 0)
        iluTakich = x / skill[i];
      else
        iluTakich = 1 + x / skill[i];
      long long zTym = 1 + atSkill(i + iluTakich);
      skill[i] = max(ileDoNastepnego, zTym);
    }
    cout << skill[0] << '\n';
  }
  return 0;
}
