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