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