#include <bits/stdc++.h>
using namespace std;
int main() {
  int num, skill;
  cin >> num >> skill;
  int A[num];
  for (int i = 0; i < num; i++) cin >> A[i];
  int k = 0;
  while (A[k] <= skill && k < num) k++;
  int soluve;
  soluve = k;
  int stay;
  if (k == num) {
    cout << num << endl;
    return 0;
  } else {
    int z = num - 1;
    while (A[z] <= skill && z >= 1) z--;
    stay = num - z - 1;
    soluve += stay;
  }
  cout << soluve << endl;
}
