#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,a[55],i,j,max=0,count=0,c;
    cin>>n;
    for(i=0;i<n;i++){
        cin>>a[i];
    }
   // max=a[0];
    for(j=0;j<n;++j){c=1;
     for(int k=0;k<j;++k){

      //if(a[0]==max){count++;}
        if(a[k]>a[j]){c=0;break;}

    }if(c)++count;}
    cout<<count<<endl;
}

    cout<<count<<endl;
}
