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

int main() {
  int N;
  cin >> N;
  vector<int> mountain(N);
  for (int i=0;i<N;i++){
    cin >> mountain(i);
  }
  int see_sea = 1;
  for(int i=1;i<N;i++){
    if (max_element(mountain.begin(),mountain.begin()+i)==mountain(i)){
      see_sea+=1;
    }
  }
  cout << see_sea << endl;
}
