#include <bits/stdc++.h>
using namespace std;
string char_to_str(char c) {
  string tem(1, c);
  return tem;
}
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
template <class T>
T rand() {
  return uniform_int_distribution<T>()(rng);
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; ++i) cin >> a[i];
  int ma = 0;
  int ans = 0;
  for (int i = 0; i < n; ++i)
    if (a[i] > ma) {
      ans++;
      ma = a[i];
    }
  cout << ans;
}
