#include <bits/stdc++.h>
int main(void) {
  int i, N, max, cnt = 1;
  scanf("%d", &N);
  int H[N];
  for (i = 0; i < N; i++) {
    scanf("%d", &H[i]);
  }
  max = H[0];
  for (i = 1; i < N; i++) {
    if (H[i] >= max) {
      max = H[i];
      cnt++;
    } else
      return cnt;
  }
}
