#include <bits/stdc++.h>
int main() {
  int N, i, j, sum = 0;
  int flag;
  scanf("%d", &N);
  int H[N];
  for (i = 0; i < N; i++) {
    flag = 0;
    scanf("%d", &H[i]);
    for (j = 0; j < i; j++) {
      if (H[j] > H[i])
        flag = 1;
      else
        continue;
    }
    if (flag == 0)
      sum++;
    else
      break;
  }
  printf("%d", sum);
  return 0;
}
