#include <bits/stdc++.h>
#define l1 long long
#define ld long double
#define mod 1000000007
#define MOD 998244353
#define eps 0.000000001
#define pi acos(-1.0)
#define f first
#define se second
#define pb push_back
#define pp pop_back
#define pf push_front
#define sz(s) s.size()
#define in(a)         \
    for (auto &x : a) \
        cin >> x;
#define pr(a)             \
    for (auto x : a)      \
        cout << x << " "; \
    cout << "\n";
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define set(a, b) memset(a, b, sizeof(a))
#define cntsbs(n) __builtin_popcount(n)
#define mn *min_element
#define mx *max_element
#define input \
    l1 t;     \
    cin >> t; \
    while (t--)
#define endl "\n"
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    input
    {
        l1 n;
        cin >> n;
        l1 a[n], maxs = 0;
        in(a);
        map<l1, l1> mp;
        for (auto x : a)
            mp[x]++;
        for (auto x : mp)
            maxs = max(x.se, maxs);
        cout << maxs << endl;
    }
    return 0;
}