#include<iostream> using namespace std; int main(){ int n,m,a,s = 0; cin>>n>>m; while(n--){ cin >> a; if(a==m){ s++; } } cout<<s<<endl; }