#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int data[n];
  for (int i = 0; i < n; i++) cin >> data[i];
  sort(data, data + n);
  int teamSize = 0, countTeam = 0;
  for (int i = 0; i < n; i++) {
    teamSize++;
    if (teamSize == data[i]) {
      countTeam++;
      teamSize = 0;
    }
  }
  cout << countTeam << endl;
}
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) solve();
  return 0;
}
