#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n, last, act, t = 1, max;
  cin >> n;
  cin >> last;
  max = last;
  while (n--) {
    cin >> act;
    if (act > max) max = act;
    if (act > last && act >= max) t++;
    last = act;
  }
  cout << t << "\n";
  return 0;
}
