// Author: Raj Jaiswal
// Created on: 2021-01-29 18:47:50

#include<bits/stdc++.h>
typedef long long int lli;
typedef long long ll;
typedef long int li;
using namespace std;
const int maxN = 1000;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
    #endif

    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin >> n;
        int arr[maxN];
        for(int i = 1; i <= n; i++) {
            arr[i] = 0;
        }
        for(int i = 1; i <= n; i++) {
            int u; cin >> u;
            arr[u]++;
        }
        int ans = 0;
        for(int i = 1; i <= n; i++) {
            ans = max(ans, arr[i]);
        }
        cout << ans;
        cout << '\n';

    }

    return 0;
}