#include <bits/stdc++.h>
int main() {
  int N, count = 1;
  scanf("%d", &N);
  int H[N];
  for (int i = 0; i < N; i++) {
    scanf("%d", &H[i]);
  }
  for (int i = 1; i < N; i++) {
    if (H[0] <= H[i] && H[2] <= H[i] && H[i - 1] <= H[i]) {
      count++;
    }
  }
  printf("%d\n", count);
  return 0;
}
