import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int max = sc.nextInt();
        int count = 1;

        for (int i=0; i<num-1; i++) {
            int input = sc.nextInt();

            if (input >= max) {
                count++;
                max = input;
            }
        }

        System.out.println(count);
    }
} import java.io.File; File java.io import java.io.FileInputStream; FileInputStream java.io import java.io.FileNotFoundException; FileNotFoundException java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int max = sc.nextInt();
        int count = 1;

        for (int i=0; i<num-1; i++) {
            int input = sc.nextInt();

            if (input >= max) {
                count++;
                max = input;
            }
        }

        System.out.println(count);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int max = sc.nextInt();
        int count = 1;

        for (int i=0; i<num-1; i++) {
            int input = sc.nextInt();

            if (input >= max) {
                count++;
                max = input;
            }
        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int max = sc.nextInt();
        int count = 1;

        for (int i=0; i<num-1; i++) {
            int input = sc.nextInt();

            if (input >= max) {
                count++;
                max = input;
            }
        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int max = sc.nextInt(); max sc.nextInt() sc.nextInt sc int count = 1; count 1 for (int i=0; i<num-1; i++) {
            int input = sc.nextInt();

            if (input >= max) {
                count++;
                max = input;
            }
        } int i=0; int i=0; i 0 i<num-1 i num-1 num 1 i++ i++ i {
            int input = sc.nextInt();

            if (input >= max) {
                count++;
                max = input;
            }
        } {
            int input = sc.nextInt();

            if (input >= max) {
                count++;
                max = input;
            }
        } int input = sc.nextInt(); input sc.nextInt() sc.nextInt sc if (input >= max) {
                count++;
                max = input;
            } input >= max input max {
                count++;
                max = input;
            } count++ count max = input max input System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int max = sc.nextInt();
        int count = 1;

        for (int i=0; i<num-1; i++) {
            int input = sc.nextInt();

            if (input >= max) {
                count++;
                max = input;
            }
        }

        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int max = sc.nextInt();
        int count = 1;

        for (int i=0; i<num-1; i++) {
            int input = sc.nextInt();

            if (input >= max) {
                count++;
                max = input;
            }
        }

        System.out.println(count);
    }
} Main
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int max = sc.nextInt();
        int count = 1;

        for (int i=0; i<num-1; i++) {
            int input = sc.nextInt();

            if (input >= max) {
                count++;
                max = input;
            }
        }

        System.out.println(count);
    }
}
