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