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