compile time error

import java.util.Scanner;

class sam {
public static void main(String arg[]){

	Scanner s = new Scanner(System.in);
	int  x,y,count=0;
	long num;
	
	x = s.nextInt();
	y = s.nextInt();
	
	for(int n=0;n<x;n++)
	{
		num = s.nextInt();		
		if(num%y==0) count++;
		
			
		}
	System.out.println(count);
	}
}