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