import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop;


void main() {
  auto N = readln.chomp.to!int;
  auto A = N.iota.map!(_ => readln.chomp.to!int).array;
  auto dp = new int[](N);
  dp[0] = 1;
  foreach (i; 1..N)
    dp[i] = dp[i-1] + (A[i] > A[i-1]);
  dp[N-1].writeln;
}