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