#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  sort(arr, arr + n);
  int count{0}, running{0};
  for (int i = 0; i < n; i++) {
    running++;
    if (arr[i] - running == 0) {
      running = 0;
      count++;
    }
  }
  cout << count << endl;
}
int main() {
  int t;
  cin >> t;
  while (t--) solve();
}
