#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int A[200005];
    for (int i = 0; i < n; i++) {
      cin >> A[i];
    }
    sort(A, A + n);
    int cnt = 0, res = 1;
    for (int i = 0; i < n; i++) {
      if (res == A[i]) {
        res = 0;
        cnt++;
      }
      res++;
    }
    cout << cnt << endl;
  }
  return 0;
}
