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