import java.util.Scanner;

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

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

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

        int result = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            if (a >= max) {
                max = a;
                result++;
            }
        }
        System.out.println(result);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

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

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

        int result = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            if (a >= max) {
                max = a;
                result++;
            }
        }
        System.out.println(result);
    }
} Main
import java.util.Scanner;

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

        int result = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            if (a >= max) {
                max = a;
                result++;
            }
        }
        System.out.println(result);
    }
}
