#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, H_i, H_j;
  int A;
  int B = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> H_i;
  }
  for (int i = 0; i < N; i++) {
    A = 0;
    for (int j = 0; j < i; j++) {
      if (H_i - H_j >= 0) A++;
    }
    if (A == i + 1) B++;
  }
  cout << B << endl;
}
