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