#include <bits/stdc++.h>
using namespace std;
int solve() {
  int n, e;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < n; ++i) {
    cin >> e;
    mp[e]++;
  }
  int c = 0, r = 0;
  for (auto x : mp) {
    c += (x.second + r) / x.first;
    r = (x.second + r) % x.first;
  }
  cout << c;
  return 0;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
    cout << '\n';
  }
  return 0;
}
