import java.lang.Math;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
      	final int N = scanner.nextInt();
      	int count = 0;
		int max = 0;
      	for (int i = 0; i < N; i++) {
        	final int h = scanner.nextInt();
          	if (h >= max) {
            	count++;
              	max = h;
            }
        }

       	System.out.println(count);
    }
} import java.lang.Math; Math java.lang import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
      	final int N = scanner.nextInt();
      	int count = 0;
		int max = 0;
      	for (int i = 0; i < N; i++) {
        	final int h = scanner.nextInt();
          	if (h >= max) {
            	count++;
              	max = h;
            }
        }

       	System.out.println(count);
    }
} Main public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
      	final int N = scanner.nextInt();
      	int count = 0;
		int max = 0;
      	for (int i = 0; i < N; i++) {
        	final int h = scanner.nextInt();
          	if (h >= max) {
            	count++;
              	max = h;
            }
        }

       	System.out.println(count);
    } main {
        final Scanner scanner = new Scanner(System.in);
      	final int N = scanner.nextInt();
      	int count = 0;
		int max = 0;
      	for (int i = 0; i < N; i++) {
        	final int h = scanner.nextInt();
          	if (h >= max) {
            	count++;
              	max = h;
            }
        }

       	System.out.println(count);
    } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int count = 0; count 0 int max = 0; max 0 for (int i = 0; i < N; i++) {
        	final int h = scanner.nextInt();
          	if (h >= max) {
            	count++;
              	max = h;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
        	final int h = scanner.nextInt();
          	if (h >= max) {
            	count++;
              	max = h;
            }
        } {
        	final int h = scanner.nextInt();
          	if (h >= max) {
            	count++;
              	max = h;
            }
        } final int h = scanner.nextInt(); h scanner.nextInt() scanner.nextInt scanner if (h >= max) {
            	count++;
              	max = h;
            } h >= max h max {
            	count++;
              	max = h;
            } count++ count max = h max h System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.lang.Math;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
      	final int N = scanner.nextInt();
      	int count = 0;
		int max = 0;
      	for (int i = 0; i < N; i++) {
        	final int h = scanner.nextInt();
          	if (h >= max) {
            	count++;
              	max = h;
            }
        }

       	System.out.println(count);
    }
}