#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int n, a[100000], x, poz;
cin >> n >> x;
for (int i = 0; i < n; ++i)
{
cin >> a[i];
}
sort(a, a + n);
for (int i = n - 1; i >= 0; --i)
{
if (a[i] == x)
{
poz = i + 1; //+1 deoarece incepem indexarea de la 0
}
}
cout << poz;
return 0;
}