import java.util.Scanner;

public class main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
Scanner SC = new Scanner(System.in);
int N = SC.nextInt();
int H [] = new int[N + 1];
for(int i = 0; i < N; i++) {
    H[i] = SC.nextInt();
}
int counter = 0;
for(int i = 0; i <= N; i++) {
	boolean cso = true;
	for(int j = 0; j <= N; i++) {
		if(H[j] > H[i]) {
			cso = false;
		}
	}
	if(cso) {
		counter++;
	}
}
System.out.println(counter);
	}

}
