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