#include<stdio.h>
int main(void){
  int N,H[20],i,j,c=0;
  scanf("%d",&N);
  for(i=0;i<=N-1;i++){
    scanf("%d",&H[i]);
  }
  for(i=1;i<=N-1;i++){
    for(j=i+1;j<=N-1;j++){
      if(H[i]<H[j]){
        break;
      }
      if(j==N-1)
        c++;
    }
    printf("%d",c);
    return 0;
  }