#include <stdio.h>

int int main() {
  /* code */
  int n, i, maxh = 0, can_see = 1;
  int* h;
  scanf("%d\n", &n);
  h = (int*)malloc(sizeof(int)*n);
  scanf("%d", &h[0]);
  maxh = h[0];
  for (i = 0; i < n - 1; i++) {
    /* code */
    scanf(" %d\n", &h[i+1]);
    if (maxh < h[i+1]) {
      /* code */
      maxh = h[i+1];
      can_see++;
    }
  }
  printf("%d\n", can_see);
  return 0;
}