#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int t;
  cin >> t;
  while (t--) {
    long long int n, k;
    vector<int> vi;
    cin >> n;
    for (int i = 1; i <= n; i++) {
      int x;
      cin >> x;
      vi.push_back(x);
    }
    sort(vi.begin(), vi.end());
    int ctn = 0, mid = 0;
    for (int i = 0; i < n; i++) {
      if (++mid == vi[i]) {
        ctn++;
        mid = 0;
      }
    }
    cout << ctn << "\n";
  }
  return 0;
}
