#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<long long>>;
const long long inf = 1e18 + 7;
const long long mod = 1e9 + 7;
long long GetDigit(long long num) {
  unsigned digit = 0;
  while (num != 0) {
    num /= 10;
    digit++;
  }
  return digit;
}
int main() {
  long long N, ma = 0, ans = 1;
  cin >> N;
  vector<long long> H(N, 0);
  for (long long i = 0; i < (long long)(N); ++i) cin >> H[i];
  for (long long i = 1; i < N; i++) {
    ma = max(ma, H[i]);
    if (ma <= H[i]) {
      ans++;
    }
  }
  cout << ans << endl;
  return 0;
}
