#include <bits/stdc++.h>
using namespace std;
double pi = 3.141592653589793;
long long mod = 1000000007;
long long INF = 1000000001;
int intmax = 2147483647;
int intmin = -2147483648;
long long llmax = 9223372036854775807;
long long llmin = -9223372036854775807;
int main() {
  int n;
  vector<int> v(n);
  cin >> n;
  int cnt = 0;
  for (int i = 0; i < n; i++) cin >> v[i];
  int m = 0;
  for (int i = 0; i < n; i++) {
    m = max(m, v[i]);
    if (m == v[i]) {
      cnt += 1;
    }
  }
  cout << cnt << endl;
  return 0;
}
