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