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