#include <bits/stdc++.h>
int main() {
  int N;
  int sum = 0;
  int allsum = 0;
  scanf("%d", &N);
  int H[N];
  for (int i = 0; i < N; i++) {
    scanf("%d", &H[i]);
  }
  for (int i = 0; i < N; i++) {
    for (int j = 0; j <= i; j++) {
      if (H[j] <= H[i]) {
        sum++;
      }
    }
    if (sum == i + 1) {
      allsum++;
    }
  }
  printf("%d\n", allsum);
}
