#include<bits/stdc++.h>
using namespace std;

#define ll long long
#define debug(x) cout<<x<<"DE\n";
#define debug2(x,y) cout<<x<<" "<<y<<"DE\n";
#define _ ios_base::sync_with_stdio(false);
#define mod 1000000007

ll fact[100005];

ll bigmod(ll b,ll p)
{
    ll an=1;b%=mod;
    while(p>0){
        if(p&1)an=an*b%mod;
        b=b*b%mod;
        p>>=1;
    }
    return an;
    ///BINARY EXPONENTATION///
    ///TAKEN FROM "e-maxx"///
}

int main()
{_
    ll t=1;
    cin>>t;
//    fact[0]=1;
//    for(int i=1;i<=100003;i++)fact[i]=(fact[i-1]*i)%mod;
    while(t--){
        ll n,k;
        cin>>n;
        unordered_map<ll,ll>mp;
        ll x=1;
        for(int i=1;i<=n;i++){
            ll a;
            cin>>a;
            mp[a]+=1;
            x=max(x,mp[a]);
        }
        cout<<x<<endl;
    }
}
