
import java.io.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int howmany = Integer.parseInt(br.readLine());
int[] stickHeight = new int[howmany];
for (int i = 0; i < howmany; i++) {
stickHeight[i] = Integer.parseInt(br.readLine());
}
int count = 0;
int max = 0;
for (int i = stickHeight.length-2; i >= 0; i--) {
if (stickHeight[i] > max) {
max = stickHeight[i];
if (stickHeight[i] > stickHeight[stickHeight.length - 1] && stickHeight[i] >= max) {
count++;
} else {
continue;
}
}
}
System.out.println(count+1);
}
}