#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a.at(i);
  }
  int ans = 1;
  int i = 1;
  while (1) {
    if (i == n - 1 && a.at(i - 1) <= a.at(i)) {
      ans++;
      break;
    } else if (i == n - 1)
      break;
    if (a.at(i - 1) <= a.at(i)) ans++;
    i++;
  }
  cout << ans << endl;
}
