#include<iostream>
using namespace std;
int main()
{
  int N;
  cin >> N;
  int H[N];
  for(int i=0; i<N; i++){
    cin >> H[i];
  }
  int dp[N],int count=1;
  dp[0] = 0;
  for(int i=0; i<N; i++){
    dp[i+1] = max(dp[i], H[i])
    if(dp[i] < H[i+1])
      count++;
  }
  cout << count;
  return 0;
}
    