#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main()
{
    int t;
    while(cin>>t)
    {
        while(t--)
        {
            int n;
            cin>>n;
            vector<int> times(n + 1,0);
            for(int i = 0; i < n; i++)
            {
                int tmp;
                cin>>tmp;
                times[tmp]++;
            }

            int maxt = 1;
            for(int i = 0; i <= n; i++)
            {
                maxt = max(maxt, times[i]);
            }

            cout<<maxt<<endl;
        }
    }

    return 0;
}
