#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  int h[n];
  vector<int> v;
  for (int i = 0; i < n; i++) {
    cin >> h[i];
    if (v.empty())
      v.push_back(h[i]);
    else if (v.back() <= h[i])
      v.push_back(h[i]);
  }
  cout << v.size() << '\n';
  return 0;
}
