#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int max = 0, cnt = 1;
  vector<int> a(n);
  for (long long i = 0; i < (long long)(n); i++) {
    cin >> a[i];
    if (a[i] > max) {
      max = a[i];
    }
  }
  for (long long i = (1); i < (long long)(n); i++) {
    if (a[i - 1] <= a[i] && max <= a[i]) {
      cnt++;
    }
  }
  cout << cnt << endl;
}
