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