#include <stdio.h>

int main(void){
  int mtHeight[20];
  int mtNum;
  scanf("%d",&mtNum);
  int i;
  for(i=0;i<mtNum;i++){
    scanf("%d",&mtHeight[i]);
  }
  int max=0;
  int count=0;
  for(i=0;i<mtNum;i++){
    if(mtHeight[i]>=max){
      max=mtHeight;
      count++;
    }
  }
  printf("%d",count);
  return 0;
}