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