#include<stdio.h>

int main(){

  int n,i,cnt;

  scanf("%d",&n);

  int a[20];
  i = 0;

  while(i < n){
     scanf("%d",&a[i]);
     i++;
  }

  cnt = 1;
  i = 1;

  int max = a[0];

  while(i < n){
    if(max <= a[i]){
      max = a[i];
      cnt++;
      i++;
    }else{
      i++;
    }
  }


  printf("%d\n",cnt);

  return 0;

