#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  long long int e[n];
  for (long long int i = 0; i < n; i++) cin >> e[i];
  sort(e, e + n);
  long long int ans = 0, curr = 0;
  for (long long int i = 0; i < n; i++) {
    if (++curr == e[i]) {
      ans++;
      curr = 0;
    }
  }
  cout << ans << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t = 1;
  cin >> t;
  for (long long int i = 0; i < t; i++) {
    solve();
  }
  return 0;
}
