#include <bits/stdc++.h>
using namespace std;
int run(int n) {
  int i, a[n];
  for (i = 0; i < n; i++) cin >> a[i];
  sort(a, a + i);
  int ans = 0;
  int tempCount = 0;
  for (i = 0; i < n; i++) {
    tempCount++;
    if (a[i] == tempCount) {
      ans++;
      tempCount = 0;
    }
  }
  return ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  int n;
  while (t--) {
    cin >> n;
    cout << run(n) << "\n";
  }
  return 0;
}
