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