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