#include <bits/stdc++.h>
int hotel[100] = {0};
int main() {
  int N;
  int i = 0;
  int prev = 0;
  int ans = 1;
  scanf("%d", &N);
  for (i = 0; i < N; i++) {
    scanf("%d", &hotel[i]);
  }
  prev = hotel[0];
  for (i = 1; i < N; i++) {
    if (hotel[0] > hotel[i]) {
      continue;
    }
    if (prev <= hotel[i]) {
      ans++;
    }
    prev = hotel[i];
  }
  printf("%d\n", ans);
  return 0;
}
