#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, a[100000], cun = 0;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  long long ma = a[0];
  for (long long i = 0; i < n; i++) {
    if (ma <= a[i]) {
      cun++;
      ma = a[i];
    }
  }
  cout << cun << "\n";
}
