#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, a[100010];
  cin >> n;
  for (int i = 0; i < ((int)(n)); i++) cin >> a[i];
  long long b = a[0], l = 1;
  for (int i = ((int)(1)); i <= ((int)(n - 1)); i++) {
    if (b > a[i]) {
      b = a[i];
    } else if (b < a[i]) {
      b = a[i];
      l++;
    }
  }
  cout << l << endl;
  return 0;
}
