#include<stdio.h>
#include<cmath>
#include<algorithm>
int main(void)
{
	int N,S[110],A=1,k=0;
	scanf("%d", &N);
	for (int i = 0; i < N; i++)
	{
		scanf("%d", &S[i]);
	}
	for (int i = 0; i < N - 1; i++)
	{
		
		{
			if ( S[i]>=k)			
			{
				A++;
			}
			if (i>=2&&S[i-1] < S[i])
			{
				k = S[i];
		
		}

	}
	printf("%d", A);
	return 0;
}