#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> mountain(N);
  for (int i = 0; i < N; i++) {
    cin >> mountain.at(i);
  }
  int see_sea = 1;
  for (int i = 1; i < N; i++) {
    if (*max_element(mountain.begin(), mountain.begin() + i) ==
        mountain.at(i)) {
      see_sea += 1;
    }
  }
  cout << see_sea << endl;
}
