#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
using lint = long long;
int main() {
  int n, ans = 1;
  cin >> n;
  std::vector<int> v(n);
  std::vector<int> cnt(n - 1);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    if (i != 0) cnt[i - 1] = v[i] - v[i - 1];
  }
  for (int i = 0; i < n - 1; i++) {
    if (cnt[i] >= 0) ans++;
  }
  cout << ans << endl;
  return 0;
}
