#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long int n, x, count = 0, sum = 0;
    cin >> n >> x;
    long long int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (x % a[i] == 0)
        a[i] = x / a[i];
      else
        a[i] = x / a[i] + 1;
    }
    sort(a, a + n);
    for (int i = 0; i < n; i++) {
      if (a[i] <= n) {
        count++;
        sum = sum + count / a[i];
        count = count % a[i];
      } else {
        break;
      }
    }
    cout << sum << endl;
  }
}
