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