#include<bits/stdc++.h>
using namespace std;

int main(){
  int n,h[20],count=1;
  cin >> n;
  for(int i=0; i<n; i++){
    cin >> h[i];
  }
  for(int i=1; i<n; i++){
    if(h[0]<=h[i] && h[1]<=h[i] && h[i-1]<=h[i]){
      count+=1
    }
  }
  cout << count << endl;
}