#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  int N;
  cin >> N;
  vector<int> Hn;
  int tmp;
  int i;
  for (i = 0; i < N; i++) {
    cin >> tmp;
    Hn.push_back(tmp);
  }
  int cansee = 0;
  for (i = 0; i < N; i++) {
    auto last = Hn.begin() + i;
    if (Hn[i] == *max_element(Hn.begin(), last)) {
      cansee++;
    }
  }
  cout << cansee << "\n";
  return 0;
}
