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