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