#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, H;
  cin >> N >> H;
  int count = 1;
  for (int i = 0; i < N; i++) {
    int K;
    cin >> K;
    if (K >= H) {
      count++;
      H = K;
    } else {
      break;
    }
  }
  cout << count << endl;
}
