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