#include <bits/stdc++.h>
int main(void) {
  int n, ans = 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[1] <= h[i] && h[i - 1] <= h[i]) ans++;
  }
  printf("%d", ans);
}
