#include <bits/stdc++.h>
using namespace std;
template <typename T, typename U>
static inline void amin(T &x, U y) {
  if (y < x) x = y;
}
template <typename T, typename U>
static inline void amax(T &x, U y) {
  if (y > x) x = y;
}
const long long int mod = (1000000007);
const long long INF64 = (long long int)1e18 + 17;
void solve() {
  long long int n;
  cin >> n;
  long long int a[n + 10];
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int cur = 0, ans = 0;
  for (int i = 0; i < n; i++) {
    cur++;
    if (a[i] <= cur) {
      ans++;
      cur = 0;
      continue;
    }
  }
  cout << ans << endl;
}
int main() {
  clock_t tt;
  tt = clock();
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  for (int i = 1; i <= t; i++) {
    solve();
  }
  tt = clock() - tt;
  double time_taken = ((double)tt) / CLOCKS_PER_SEC;
  return 0;
}
