#include <bits/stdc++.h>
int main() {
  int n, h[21], i = 0, can = 1;
  scanf("%d", &n);
  if (n > 20 || n < 1) return 1;
  for (i = 0; i < n; i++) {
    scanf("%d", &h[i]);
    if (h[i] < 1 || h[i] > 100) return 1;
  }
  for (i = 1; i < n; i++) {
    if (h[i] > h[i - 1]) {
      can++;
    } else {
      h[i] = h[i - 1];
    }
  }
  printf("%d", can);
  return 0;
}
