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