#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int arr[n];
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    sort(arr, arr + n);
    int groups = 0, members = 0, inexperience = 0;
    for (int i = 0; i < n; i++) {
      members++;
      inexperience = arr[i];
      if (members == inexperience) {
        groups++;
        members = 0;
      }
    }
    cout << groups << endl;
  }
  return 0;
}
