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