#include<bits/stdc++.h>
#define ll long long
#define in insert
#define pb push_back
#define endl '\n'
#define ub upper_bound
#define lb lower_bound
#define pf pop_front
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);srand(time(0));
using namespace std;
void fun()
{
	int n;cin>>n;
	
	unordered_map<ll,ll> m;
	
	for(int i=0;i<n;i++)
	{
		ll x;cin>>x;m[x]++;
	}
	
	ll ans=1;
	
	for(auto i:m)ans=max(ans,i.se);
	
	cout<<ans<<endl;
}
int main()
{
    fast;
    int t=1;
    cin>>t;
    while(t--)
    {
    	fun();
	}
}