#include <bits/stdc++.h>
using namespace std;
const int MOD = 1E9 + 7;
const int N = 1E5;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  for (int tt = 1; tt <= t; tt++) {
    int n, cnt = 0, ans = 0;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i <= n - 1; i++) cin >> a[i];
    sort(a.begin(), a.end());
    for (int i = 0; i <= n - 1; i++) {
      if (++cnt == a[i]) {
        ans++;
        cnt = 0;
      }
    }
    cout << ans << endl;
  }
}
