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