#include <bits/stdc++.h>
using namespace std;
int64_t TN = 1;
void solve() {
  int64_t n, w;
  cin >> n;
  int64_t a[n];
  vector<int64_t> v;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  sort(a, a + n);
  int64_t cur = 0, l = 0, r = v.size() - 1, s = 0, idx = 0;
  for (int i = 0; i < n; ++i) {
    idx++;
    if (a[i] <= idx) {
      cur++;
      idx = 0;
    }
  }
  cout << cur << endl;
}
int main() {
  cin >> TN;
  for (int i = 0; i < TN; ++i) {
    solve();
  }
  return 0;
}
