#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  int dp[100001] = {};
  dp[0] = 1;
  cin >> n;
  int pre;
  cin >> pre;
  for (int i = 1; i < n; i++) {
    int a;
    cin >> a;
    if (a > pre)
      dp[i] = dp[i - 1] + 1;
    else
      dp[i] = dp[i - 1];
    pre = a;
  }
  cout << dp[n - 1] << endl;
}
