#include <bits/stdc++.h>
int main() {
  int n, i, m;
  int *h;
  scanf("%d", &n);
  h = (int *)malloc(sizeof(int) * (n + 1));
  h[0] = 0;
  m = 0;
  for (int j = 1; j < n + 1; j++) {
    scanf("%d", &h[j]);
    if (h[0] < h[j]) {
      h[0] = h[j];
      m++;
    };
  };
  printf("%d\n", m);
  return 0;
}
