#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int m;
  int ans;
  for (int i = 0; i < N; i++) {
    int h;
    cin >> h;
    if (h >= m) {
      ans++;
      m = h;
    }
  }
  cout << ans << endl;
  return 0;
}
