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