#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long test;
  cin >> test;
  while (test--) {
    long long n;
    cin >> n;
    long long arr[n];
    for (long long i = 0; i < n; i++) {
      cin >> arr[i];
    }
    sort(arr, arr + n);
    long long ans = 0, req = 0, curr = 0;
    for (long long i = 0; i < n; i++) {
      req = arr[i];
      curr++;
      if (req == curr) {
        ans++;
        curr = 0;
      }
    }
    cout << ans << "\n";
  }
  return 0;
}
