#include <cstdio>
#include <iostream>
#include <string>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;

int main()
{
	int n;
  	cin >> nl
	vector<int> h(n);
	int ans = 1;
	for (int i = 0; i < n; i++) {
		cin >> h[i];
	}
	for (int i = 0; i < n; i++) {
		if (h[i] < h[i + 1]) ans++;
	}
	cout << ans << endl;
}