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