#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int n;
    cin >> n;
    int A[n];
    for (int j = 0; j < n; j++) {
      cin >> A[j];
    }
    sort(A, A + n);
    int ans = 0;
    int groupsize = 0;
    for (int j = 0; j < n; j++) {
      groupsize++;
      if (A[j] == groupsize) {
        ans++;
        groupsize = 0;
      }
    }
    cout << ans << '\n';
  }
  return 0;
}
