#include <bits/stdc++.h>
int main(void) {
  int N, p, k = 1;
  scanf("%d", &N);
  int H[N];
  for (int n = 0; n < N; n++) {
    scanf("%d", &H[n]);
  }
  for (int m = 1; m < N; m++) {
    if (H[m] > H[m - 1]) {
      k = k + 1;
    }
  }
  printf("%d", k);
}
