#include<iostream>
using namespace std;

int main(){
  int ans = 0;
  int N;
  cin >> N;
  int H[N];
  for(int i=0;i<N;i++){
    cin >> H[i];
  }
  int a = 1;
  while(a >= 1){
    if(i=0){
      ans++;
      a = 1;
    }else if(H[i-1]<=H[i]){
      ans++;
      a = 1;
    }else{
      a = 0;
    }
  }
  cout << ans << endl; 
  return 0;
}
      
