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