#include <bits/stdc++.h>
using namespace std;
enum color { BLACK, WHITE, GRAY };
signed main() {
  int i, j, k;
  int T;
  cin >> T;
  while (T--) {
    int N;
    cin >> N;
    int a[N + 1];
    for (i = 1; i <= N; i++) cin >> a[i];
    sort(a + 1, a + N + 1);
    int ans = 0;
    int pp = 0;
    for (i = 1; i <= N; i++) {
      if (a[i] <= i - pp) {
        ans++;
        pp = i;
      }
    }
    printf("%d\n", ans);
  }
  return 0;
}
