#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int hmax = 0;
  int n;
  cin >> n;
  int ans;
  for (int i = 0; i < (int)(n); i++) {
    int h = 0;
    cin >> h;
    hmax = max(hmax, h);
    if (h == hmax) ans++;
  }
  cout << ans << endl;
}
