#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    sort(a.begin(), a.end());
    int cnt = 0;
    int Max = 0, now = 0;
    for (int i = 0; i < n; i++) {
      Max = max(a[i], Max);
      now++;
      if (Max <= now) {
        cnt++;
        Max = 0;
        now = 0;
      }
    }
    cout << cnt << endl;
  }
}
