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