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