#include <bits/stdc++.h>
using namespace std;
template <typename T>
T absolute(T a, T b) {
  return a >= 0 ? a : -a;
}
template <typename T>
T sqr(T a) {
  return a * a;
}
long long read() {
  long long res, f = 1;
  register char ch;
  while ((ch = getchar()) > '9' || ch < '0') (ch == '-') && (f = -1);
  for (res = ch - '0'; (ch = getchar()) >= '0' && ch <= '9';
       res = res * 10 + ch - '0')
    ;
  return res * f;
}
int main() {
  long long n, cnt = 0;
  scanf("%lld", &n);
  long long a[n];
  long long maxi = 0;
  for (long long i = long long(0); i <= long long(n); ++i) {
    scanf("%lld", &a[i]);
    if (a[i] >= maxi) cnt++;
    maxi = max(maxi, a[i]);
  }
  cout << cnt << endl;
  return 0;
}
