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 = 1; i <= N; i++) {
    H[i] = SC.nextInt();
}
int counter = 0;
for(int i = 1; i <= N; i++) {
	boolean cso = true;
	for(int j = 1; j < i; j++) {
		if(H[j] > H[i]) {
			cso = false;
		}
	}
	if(cso) {
		counter++;
	}
}
System.out.println(counter);
	}

} import java.util.Scanner; Scanner java.util 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 = 1; i <= N; i++) {
    H[i] = SC.nextInt();
}
int counter = 0;
for(int i = 1; i <= N; i++) {
	boolean cso = true;
	for(int j = 1; j < i; j++) {
		if(H[j] > H[i]) {
			cso = false;
		}
	}
	if(cso) {
		counter++;
	}
}
System.out.println(counter);
	}

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

} 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 = 1; i <= N; i++) {
    H[i] = SC.nextInt();
}
int counter = 0;
for(int i = 1; i <= N; i++) {
	boolean cso = true;
	for(int j = 1; j < i; j++) {
		if(H[j] > H[i]) {
			cso = false;
		}
	}
	if(cso) {
		counter++;
	}
}
System.out.println(counter);
	}

} Main
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 = 1; i <= N; i++) {
    H[i] = SC.nextInt();
}
int counter = 0;
for(int i = 1; i <= N; i++) {
	boolean cso = true;
	for(int j = 1; j < i; j++) {
		if(H[j] > H[i]) {
			cso = false;
		}
	}
	if(cso) {
		counter++;
	}
}
System.out.println(counter);
	}

}
