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