#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int M = -1;
  int ans = 0;
  cin >> N;
  int i = 0;
  while (i < N) {
    int H;
    cin >> H;
    if (H >= M) ans++;
    M = max(M, H);
  }
  cout << ans << endl;
}
