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