Help me in solving CHN15A problem

My issue

count=0
for i in range(int(input())):
X,Y=map(int,input().split())
l=list(map(int,input().split()))
for i in range(X):
k=l[i]+Y
if k%7==0:
count=count+1
print(count)

can you hepl me where did i mistake?

My code

# cook your dish here
count=0
for i in range(int(input())):
    X,Y=map(int,input().split())
    l=list(map(int,input().split()))
    for i in range(X):
        k=l[i]+Y
        if k%7==0:
            count=count+1
    print(count)

Problem Link: CHN15A Problem - CodeChef

@maha_arkad
U have to initialize the count inside the test case for loop.