
import java.util.Arrays;
import java.util.Scanner;

public class Main {

    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int max = 0;
        int cnt = 0;

        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            }
        }

        System.out.println(cnt);
    }

    public static void main(String[] args) {
        new Main().run();
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int max = 0;
        int cnt = 0;

        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            }
        }

        System.out.println(cnt);
    }

    public static void main(String[] args) {
        new Main().run();
    }
} Main void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int max = 0;
        int cnt = 0;

        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            }
        }

        System.out.println(cnt);
    } run {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int max = 0;
        int cnt = 0;

        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            }
        }

        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int max = 0; max 0 int cnt = 0; cnt 0 for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int a = sc.nextInt();
            if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            }
        } {
            int a = sc.nextInt();
            if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            }
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            } a >= max a max {
                cnt++;
                max = Math.max(a, max);
            } cnt++ cnt max = Math.max(a, max) max Math.max(a, max) Math.max Math a max System.out.println(cnt) System.out.println System.out System System.out cnt public static void main(String[] args) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args public class Main {

    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int max = 0;
        int cnt = 0;

        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            }
        }

        System.out.println(cnt);
    }

    public static void main(String[] args) {
        new Main().run();
    }
} public class Main {

    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int max = 0;
        int cnt = 0;

        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            }
        }

        System.out.println(cnt);
    }

    public static void main(String[] args) {
        new Main().run();
    }
} Main

import java.util.Arrays;
import java.util.Scanner;

public class Main {

    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int max = 0;
        int cnt = 0;

        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a >= max) {
                cnt++;
                max = Math.max(a, max);
            }
        }

        System.out.println(cnt);
    }

    public static void main(String[] args) {
        new Main().run();
    }
}
