#include <bits/stdc++.h>
using namespace std;
const int32_t INF32 = 1000000000;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int32_t tests;
  cin >> tests;
  for (int32_t test = 0; test < tests; test++) {
    int32_t count, value;
    cin >> count >> value;
    int32_t values[count];
    for (int32_t i = 0; i < count; i++) {
      cin >> values[i];
    }
    sort(values, values + count);
    int32_t min_team_size[count];
    int32_t free_count = 0;
    for (int32_t i = count - 1; i >= 0; i--) {
      free_count++;
      min_team_size[i] = (value - 1) / values[i] + 1;
      if (min_team_size[i] > free_count) {
        min_team_size[i] = INF32;
      } else {
        free_count -= min_team_size[i];
      }
    }
    sort(min_team_size, min_team_size + count);
    int32_t result = 0;
    int32_t sum = 0;
    for (int32_t i = 0; i < count && sum < count; i++) {
      if (min_team_size[i] <= 0) {
        continue;
      }
      if (sum + min_team_size[i] <= count) {
        result++;
        sum += min_team_size[i];
      } else {
        break;
      }
    }
    cout << result << "\n";
  }
  return 0;
}
