#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int n,result,highest;
  cin >> n;
  result = 0;
  highest = 0;
  vector<int> hotel(n);
  for(int i = 0;i<n;i++){
    cin  >> hotel[i];
  }
  
  for(int i = 0;i<n;i++){
    if(h[i] >= highest){
      result += 1;
      highest = h[i];
    }
  }
  cout << result << endl;
}