Help me in solving PAIREQ problem

My issue

PAIREQ PROBLEM
MAY I KNOW WHAT IS THE USE OF n variable here

My code

# cook your dish here
from statistics import mode
for i in range(int(input())):
    n=int(input())
    x=list(map(int,input().split()))
    m=mode(x)
    a=(len(x)-(x.count(m)))
    print(a)

Problem Link: PAIREQ Problem - CodeChef

@niruba
N is the size of the array u r making