#include <bits/stdc++.h>
using namespace std;
int main() {
  int A, B = 1, C, count = 1;
  string S;
  cin >> A;
  C = A;
  vector<int> v(A);
  for (int i = 0; i < A; i++) cin >> v.at(i);
  for (int i = 1; i < A; i++) {
    if (v.at(i) > C) C = v.at(i);
    if (v.at(i) >= v.at(0) && v.at(i) >= C) {
      count += 1;
    }
  }
  cout << count << endl;
}
