#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  int last;
  int H, cnt;
  last = 0;
  cnt = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> H;
    if (last <= H) {
      cnt++;
    }
    last = H;
  }
  cout << cnt << endl;
  return 0;
}
