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