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