include<iostream>
using namespace std;
int main() { long int n,k,i,count=0,t; cin>>n; cin>>k;
for(i=0;i<n;i++) {="" cout<<endl;="" cin="">>t; if(t%k==0) count++; } cout<<count; return 0; }
using namespace std;
int main() { long int n,k,i,count=0,t; cin>>n; cin>>k;
for(i=0;i<n;i++) {="" cout<<endl;="" cin="">>t; if(t%k==0) count++; } cout<<count; return 0; }