#include<bits/stdc++.h>
#include<string.h>
#define nl "\n"
#define space " "
typedef long long ll;
using namespace std;

void solve(){
    ll n; cin >> n;
    vector<ll> v(n);
    for(ll i = 0;i < n;i++){
        cin >> v[i];
    }
    vector<ll> cnt;
    for(ll i = 0;i < v.size();i++){
        ll total = count(v.begin(), v.end(), v[i]);
        cnt.push_back(total);
    }
    cout << *max_element(cnt.begin(), cnt.end()) << nl;
}

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);

  ll t; cin >> t;
  while(t--){
    solve();
  }
  return 0;
}
