#include <bits/stdc++.h>
using namespace std;
int main()
{
int n, k;
cin >> n >> k;
int ans = 0;
int cur = 0;
for (int i = 0; i < n; i++)
{
int a;
cin >> a;
if (a >= k)
cur++;
else
cur = 0;
ans = max(ans, cur);
}
cout << ans << "\n";
return 0;
}