#include <bits/stdc++.h>
using namespace std;
long long int modpower(long long int a, long long int b, long long int c) {
  long long int res = 1;
  while (b) {
    if (b & 1LL) res = (res * a) % c;
    a = (a * a) % c;
    b >>= 1;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int arr[n + 1];
    for (int i = 0; i < n; i++) cin >> arr[i];
    sort(arr, arr + n);
    int cur = 0;
    int c = 0;
    int ans = 0;
    for (int i = 0; i < n; i++) {
      cur = max(cur, arr[i]);
      c++;
      if (c >= cur) {
        c = 0;
        ans++;
      }
    }
    cout << ans << "\n";
  }
}
