#include<bits/stdc++.h>
usng namespace std;

int main(){
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0;i < N; i++) cin >> a.at(i);
  int count = 1;
  for (int i = 1; i < (N - 1); i++){
    if (a.at(i) < a.at(i + 1)) count++;
  }
  cout << count << endl;
}