**Input**

The input begins with two positive integers n k (n, k<=10^7). The next n lines of input contain one positive integer ti, not greater than 109, each.**Output**

Write a single integer to output, denoting how many integers ti are divisible by k.

my code is.........

```
#include<stdio.h>
int main()
{
int t,i=1,j=0,k;
int n;
scanf("%d%d", &t,&k);
if(t>0&&k>0)
{
while(i<=t){
scanf("%d",&n);
if(n%k==0)
j++;
i++;
}
printf("%d",j);
}
return 0;
}
```

Whats wrong?