#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> H(N);
  for (int i = 0; i < N; i++) cin >> H[i];
  int cnt = 1;
  int st = H[0];
  for (int i = 1; i < N; i++) {
    if (st <= H[i]) {
      cnt++;
      st = H[i];
    } else
      break;
  }
  cout << cnt << endl;
  return 0;
}
