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