#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, k;
  cin >> n >> k;
  int cntBeforeK = 0;
  int moreThanK = 0;
  int total = 0;
  for (int i = 0; i < n; ++i) {
    int current;
    cin >> current;
    if (current > k) {
      if (!moreThanK) {
        total += cntBeforeK;
      }
      cntBeforeK = 0;
      ++moreThanK;
    } else {
      ++cntBeforeK;
    }
  }
  total += cntBeforeK;
  cout << total << endl;
  return 0;
}
