#include <bits/stdc++.h>
int main() {
  int N, cnt = 0, i, back = 0, now;
  scanf("%d", &N);
  for (i = 0; i < N; i++) {
    scanf("%d", &now);
    if (back <= now) {
      cnt++;
    }
    back = now;
  }
  printf("%d\n", cnt);
  return 0;
}
