#include<bits/stdc++.h> int main(){ int n,m,temp,ans=0; std::cin>>n>>m; for(int i=1;i<=n;i++){ std::cin>>temp; if(temp==m){ans++;} }std::cout<<ans; }