#include <bits/stdc++.h>
int main() {
  int n, k, c;
  int mx = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", k);
    if (k >= mx) {
      mx = k;
      c++;
    }
  }
  printf("%d", c);
}
