#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    int n, p = 0, q = 0;
    cin >> n;
    int a[n];
    for (long long int i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n);
    int i = 0;
    for (i = 0; i < n; i++) {
      if (a[i] <= i - q + 1) {
        p++;
        q = i + 1;
      }
    }
    cout << p << "\n";
  }
}
