#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int a[n];
  map<int, int> f;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    f[a[i]]++;
  }
  map<int, int>::iterator it;
  int c = 0, d = 0;
  for (it = f.begin(); it != f.end(); it++) {
    c = c + (d + (it->second)) / (it->first);
    d = ((it->second) + d) % (it->first);
  }
  cout << c << endl;
}
int main() {
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
