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