#include <bits/stdc++.h>
int main(void) {
  int all_mt, hotel_num = 0;
  scanf("%d\n", &all_mt);
  int mt_num[all_mt];
  mt_num[0] = 0;
  for (int i = 1; i <= all_mt; i++) {
    scanf("%d ", &mt_num[i]);
    if (mt_num[i - 1] <= mt_num[i] && mt_num[1] <= mt_num[i]) {
      hotel_num++;
    }
  }
  printf("%d\n", hotel_num);
  return 0;
}
