#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  scanf("%d", &n);
  vector<int> a(n);
  for (auto &it : a) cin >> it;
  sort(a.begin(), a.end());
  int ans = 0;
  int sum = 0;
  for (int i = 0; i < n; i++) {
    sum++;
    if (a[i] == sum) {
      ans++;
      sum = 0;
    }
  }
  cout << ans << "\n";
}
int main() {
  int t;
  scanf("%d", &t);
  while (t--) solve();
  return 0;
}
