#include <bits/stdc++.h>
using namespace std;
map<int,int> m;
int main()
{
    int t;cin >> t;
    while(t--)
    {
       m.clear();
       int n;cin >> n;
       int arr[n];for(int i = 0;i < n;i++){cin >> arr[i];m[arr[i]]++;}
       vector<int> cnt;
       int ans = 0;
       map<int,int>::iterator itr = m.begin();
       for(itr = m.begin();itr != m.end();itr++)cnt.push_back(itr->second);
       sort(cnt.begin(),cnt.end());
       cout << cnt[cnt.size()-1]  << endl;
    }
}
