#include <stdio.h>
#include <stdlib.h>

int main()
{
	char h[21][4];
	int N,H[21],i=0,can=1;
	scanf("%2d",&N);
	do
	{
		scanf("%s",h[i]);
	}while(h[i]!='\n');
	H[0]=atoi(h[0]);
	for(i=1;i<N;i++)
	{
		H[i]=atoi(h[i]);
		if(h[i]>h[i-1])
		{
			can++;
		}
		else
		{
			h[i]=h[i-1];
		}
	}
	printf("%d",can);
	return 0;
}
