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