#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, counter;
  counter = 1;
  cin >> N;
  int arr[N];
  for (int i{0}; i < N; ++i) {
    cin >> arr[i];
  }
  for (int i{1}; i < N - 1; ++i) {
    if ((arr[i] >= arr[0]) || (arr[i] >= arr[1]) || (arr[i] >= arr[i - 1])) {
      counter++;
    }
  }
  cout << counter;
}
