#include <iostream>
using namespace std;
int main()
{
	int n,x,i,ans,num;
	cin >> n >> x;
	int a[n]={};
	ans=0;
	for(i=1;i<=n;i++){
		x=num;
		cin>>a[i];
		if(num-a[i]>=0) ans++;
	}
	if(num-a[i]==0) cout<<ans<<endl;
	else cout<<ans-1<<endl;
}