#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  a %= b;
  return gcd(b, a);
}
long long lcm(long long a, long long b) { return (a * b) / gcd(a, b); }
void func() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  long long ans = 0, cur = 0;
  for (long long i = 0; i < n; i++) {
    cur++;
    if (cur == a[i]) {
      cur = 0;
      ans++;
    }
  }
  cout << ans << endl;
  return;
}
int main() {
  long long t;
  cin >> t;
  while (t--) {
    func();
  }
  return 0;
}
