#include<stdio.h>
int main(void){
  int N;
  scanf("%d",&N);
  int H[N];
  for(int i = 0;i < N;i ++){
    scanf("%d",&H[i]);
  }
  int ans = 0;
  int highest = 0;
  for(int k = 0;k < N;k ++){
    if(highest =< H[k]){
      ans ++;
      highest = H[k];
    }
  }
  printf("%d\n",ans);
}