#include <bits/stdc++.h>
int main() {
  int N;
  int H[20];
  int i, j;
  scanf("%d", &N);
  for (i = 0; i < N; i++) {
    scanf("%d", &H[i]);
  }
  int count = 1;
  int judge = 0;
  for (i = 1; i < N; i++) {
    for (j = i - 1; j >= 0; j--) {
      if (H[i] >= H[j]) {
        judge++;
      }
    }
    if (judge == i) {
      count++;
    }
    judge = 0;
  }
  printf("%d\n", judge);
  return 0;
}
