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