#include<bits/stdc++.h>
#define int long long int
#define endl "\n"
#define pb push_back
#define loop(i,m) for(int i=0;i<m;i++)
#define all(v) v.begin(),v.end() 
#define vi vector<int> v(n);
#define MAXN 200005
using namespace std;

void answer(){
    int n;
    cin>>n;
    vi;
    int mx=0;
    map<int,int> m;
    loop(i,n){cin>>v[i];m[v[i]]++;}
    for(auto x:m){
        mx=max(x.second,mx);
    }
    cout<<mx;
}
int32_t main() 
{ 
    //freopen("input.txt" , "r" , stdin);
    //freopen("output.txt" , "w" , stdout);
    int t;
    cin>>t;
    //t=1;
    while(t--){
        answer();
        cout<<endl;
      }
    return 0; 
}