#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> H(N);
  for (int i = 0; i < (int)(N); ++i) {
    cin >> H[i];
  }
  int mx = H[0];
  int cnt = 1;
  for (int i = ((int)(1)); i < (int)(N); ++i) {
    if (mx < H[i]) {
      ++cnt;
      mx = H[i];
    }
  }
  cout << cnt << "\n";
}
