
import java.util.Scanner;

public class Main {
    public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int number = scanner.nextInt();

        int max = 0;
        int result = 0;

        for (int i = 0; i < number; i++) {
            final int mountain = scanner.nextInt();
            if (mountain >= max) {
                result++;
                max = mountain;
            }
        }

        System.out.println(result);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int number = scanner.nextInt();

        int max = 0;
        int result = 0;

        for (int i = 0; i < number; i++) {
            final int mountain = scanner.nextInt();
            if (mountain >= max) {
                result++;
                max = mountain;
            }
        }

        System.out.println(result);
    }
} Main public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int number = scanner.nextInt();

        int max = 0;
        int result = 0;

        for (int i = 0; i < number; i++) {
            final int mountain = scanner.nextInt();
            if (mountain >= max) {
                result++;
                max = mountain;
            }
        }

        System.out.println(result);
    } main {
        final Scanner scanner = new Scanner(System.in);
        final int number = scanner.nextInt();

        int max = 0;
        int result = 0;

        for (int i = 0; i < number; i++) {
            final int mountain = scanner.nextInt();
            if (mountain >= max) {
                result++;
                max = mountain;
            }
        }

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

        int max = 0;
        int result = 0;

        for (int i = 0; i < number; i++) {
            final int mountain = scanner.nextInt();
            if (mountain >= max) {
                result++;
                max = mountain;
            }
        }

        System.out.println(result);
    }
} public class Main {
    public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int number = scanner.nextInt();

        int max = 0;
        int result = 0;

        for (int i = 0; i < number; i++) {
            final int mountain = scanner.nextInt();
            if (mountain >= max) {
                result++;
                max = mountain;
            }
        }

        System.out.println(result);
    }
} Main

import java.util.Scanner;

public class Main {
    public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int number = scanner.nextInt();

        int max = 0;
        int result = 0;

        for (int i = 0; i < number; i++) {
            final int mountain = scanner.nextInt();
            if (mountain >= max) {
                result++;
                max = mountain;
            }
        }

        System.out.println(result);
    }
}
