#include <stdio.h>

int main() {
	int n, i[20], a, count = 1;

	scanf_s("%d", &n);
	if (n < 1 | n>20)return 0;
	for (a = 0; a < n; a++) {
		scanf_s("%d", &i[a]);
		if (i[a] < 1 | i[a]>20)return 0;
	}

	for (a = 1; a < n; a++) {
		if (i[0] <= i[a] & i[1] <= i[a] & i[a - 1] <= i[a])count++;
	}

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