#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N;
  cin >> N;
  vector<long long> H(N);
  for (long long i = 0; i < N; i++) {
    cin >> H[i];
  }
  long long highest = 0;
  long long counter = 0;
  for (long long i = 0; i < N; i++) {
    if (highest < H[i]) {
      counter++;
      highest = H[i];
    }
  }
  cout << counter << endl;
  return 0;
}
