#include <bits/stdc++.h>
using namespace std;
int main() {
  int temp, l, max, compte;
  cin >> l;
  for (int i = 0; i < l; i++) {
    cin >> temp;
    if (max <= temp) {
      compte++;
    }
    if (temp > max) {
      max = temp;
    }
  }
  cout << compte;
}
