import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] mountains = new int[N];
        for (int i = 0; i < N; i++) {
            mountains[i] = sc.nextInt();
        }

        int answer = 0;

        int highest = 0;
        for (int i = 0; i < N; i++) {
            if (highest <= mountains[i]) {
                answer++;
                highest = mountains[i];
            }
        }

        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] mountains = new int[N];
        for (int i = 0; i < N; i++) {
            mountains[i] = sc.nextInt();
        }

        int answer = 0;

        int highest = 0;
        for (int i = 0; i < N; i++) {
            if (highest <= mountains[i]) {
                answer++;
                highest = mountains[i];
            }
        }

        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] mountains = new int[N];
        for (int i = 0; i < N; i++) {
            mountains[i] = sc.nextInt();
        }

        int answer = 0;

        int highest = 0;
        for (int i = 0; i < N; i++) {
            if (highest <= mountains[i]) {
                answer++;
                highest = mountains[i];
            }
        }

        System.out.println(answer);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] mountains = new int[N];
        for (int i = 0; i < N; i++) {
            mountains[i] = sc.nextInt();
        }

        int answer = 0;

        int highest = 0;
        for (int i = 0; i < N; i++) {
            if (highest <= mountains[i]) {
                answer++;
                highest = mountains[i];
            }
        }

        System.out.println(answer);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] mountains = new int[N]; mountains new int[N] N for (int i = 0; i < N; i++) {
            mountains[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            mountains[i] = sc.nextInt();
        } {
            mountains[i] = sc.nextInt();
        } mountains[i] = sc.nextInt() mountains[i] mountains i sc.nextInt() sc.nextInt sc int answer = 0; answer 0 int highest = 0; highest 0 for (int i = 0; i < N; i++) {
            if (highest <= mountains[i]) {
                answer++;
                highest = mountains[i];
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if (highest <= mountains[i]) {
                answer++;
                highest = mountains[i];
            }
        } {
            if (highest <= mountains[i]) {
                answer++;
                highest = mountains[i];
            }
        } if (highest <= mountains[i]) {
                answer++;
                highest = mountains[i];
            } highest <= mountains[i] highest mountains[i] mountains i {
                answer++;
                highest = mountains[i];
            } answer++ answer highest = mountains[i] highest mountains[i] mountains i System.out.println(answer) System.out.println System.out System System.out answer String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] mountains = new int[N];
        for (int i = 0; i < N; i++) {
            mountains[i] = sc.nextInt();
        }

        int answer = 0;

        int highest = 0;
        for (int i = 0; i < N; i++) {
            if (highest <= mountains[i]) {
                answer++;
                highest = mountains[i];
            }
        }

        System.out.println(answer);
    }
}