#include <stdio.h>
int main(void){
int n;
  int max=0;
  int ans=0;
  int h[200];
  scanf("%d",&n);
  for(int i=1;i<=n;i++){
  scanf("%d",&h[count]);
  }
    for(int i=1;i<=n;i++){
  if(max<=h[count]){ans++;max=h[count];}
  }
  printf("%d",ans);
return 0;}