#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
  sort(v.begin(), v.end());
  int cnt = 0;
  for (int i = 0; i < n;) {
    int cur = 1;
    while (i < n && cur < v[i]) {
      cur++;
      i++;
    }
    if (i == n) break;
    cnt++;
    i++;
  }
  cout << cnt << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
