#include<bits/stdc++.h>
using namespace std;
#define ll long long int 
#define ull unsigned long long int 
#define pb push_back
#define xx first
#define yy second
int main()
{
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	ll t=1;
	cin>>t;
	while(t--)
	{
		ll n;
        cin>>n;

        ll i,a[n];
        unordered_map <ll,ll> mp;

        for(i=0;i<n;i++)
        {
            cin>>a[i];
            mp[a[i]]++;
        }


        ll ans=INT_MIN;
        for(i=1;i<=n;i++)
        {
            ans=max(ans,mp[i]);
        }

        cout<<ans<<'\n';
	}
}