#include <bits/stdc++.h>
int main() {
  int n, i, maxh = 0, can_see = 1, h;
  scanf("%d\n", &n);
  scanf("%d", &h);
  maxh = h;
  for (i = 0; i < n - 1; i++) {
    scanf(" %d\n", &h);
    if (maxh < h) {
      maxh = h;
      can_see++;
    }
  }
  printf("%d\n", can_see);
  return 0;
}
