#include <bits/stdc++.h>
int main(void) {
  int N, k = 1;
  scanf("%d", &N);
  int H[N];
  for (int n = 0; n < N; n++) {
    scanf("%d", &H[n]);
  }
  int s = H[0];
  for (int m = 1; m < N; m++) {
    for (int t = 0; t < m; t++) {
      if (s < H[t]) s = H[t];
    }
    if (H[m] > s) k = k + 1;
  }
  printf("%d\n", k);
}
