#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int H[n];
  for (int i = 0; i < n; i++) cin >> H[i];
  int cnt = 1;
  for (int i = 1; i < n; i++) {
    if (H[i] >= H[i - 1]) cnt++;
  }
  cout << cnt << endl;
}
