#include <bits/stdc++.h>
using namespace std;
long long n, k, x, counts = 0, mid = 0;
bool flag = true;
int main() {
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x <= k && flag) counts++;
    if (x <= k && !flag) mid++;
    if (x > k) {
      flag = false;
      mid = 0;
    }
  }
  counts += mid;
  cout << counts;
  return 0;
}
