#include <iostream>
using namespace std;

int main() {
  int N,sum=0,lim=0;
  vector<int> H(N);
  
  cin >> N;
  for (int x:H) {
    cin >> H;
  }
  lim = H(0);
  for (int i=0;i<N;i++) {
    if  (H(i) >= lim) {
      lim = H(i)
      sum++;
    } else {
      continue;
    }
  }
}