#include <bits/stdc++.h>
using namespace std;
void in_out_file() {}
int main() {
  in_out_file();
  long long int tc = 1;
  cin >> tc;
  while (tc--) {
    long long int n;
    cin >> n;
    long long int size = 2e5 + 5;
    std::vector<long long int> a(n);
    long long int no;
    long long int maxi = 0;
    long long int sum = 0;
    long long int ans = 0;
    for (long long int i = 0; i < n; i++) {
      cin >> a[i];
    }
    sort(a.begin(), a.end());
    for (long long int i = 0; i < n; i++) {
      sum++;
      ans += sum / a[i];
      sum = sum - ((sum / a[i]) * a[i]);
    }
    cout << ans << "\n";
  }
  return 0;
}
