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