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

int main(){
  int i,N,max,x;
  cin >> N;
  for(i=0;i<N;i++){
    cin >> h;
    max = 0;
    x = 0;
    if(h>=max){
      max = h;
      x++;
  }
  cout << x << endl;
    return 0;
}