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