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