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