#include<bits/stdc++.h>
using namespace std;
int main(){
    int a[160]={0},n,i,x,h=1,l;
    cin>>n>>x;
    for(i=0;i<n;i++){
    	cin>>a[i];
    }
    for(h=1;h<n;h++){
    	for(i=0;i<n-h;i++){
    		if(a[i]>a[i+1]){
    			swap(a[i],a[i+1]);
    		}
    	}
    }
    for(i=0;i<n;i++){
    	if(x==a[i]){
    	    cout<<i+1;
    	}
    }
}
/**************************************************************
	Problem: 1399
	User: huanghengyi
	Language: C++
	Result: Wrong Answer
****************************************************************/