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