#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  int H[N];
  for (int i = 0; i < N; i++) {
    cin >> H[i];
  }
  int x = 0;
  int sam = 1;
  while (x < N) {
    if (H[x] <= H[x + 1]) {
      sam += 1;
    } else {
      continue;
    }
  }
  cout << sam << endl;
}
