#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int *e = new int[n];
    for (int i = 0; i < n; i++) {
      cin >> e[i];
    }
    sort(e, e + n);
    int res = 0;
    int free = 0;
    for (int i = 0; i < n; i++) {
      free++;
      if (e[i] <= free) {
        res++;
        free -= e[i];
      }
    }
    cout << res << endl;
    delete[] e;
  }
  return 0;
}
