#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int arr[200005];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr, arr + n);
  int groups = 0;
  int j = 0;
  for (int i = 0; i < n; i++) {
    if (arr[i] <= (i - j + 1)) {
      groups++;
      j = i + 1;
    }
  }
  cout << groups << endl;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
