import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int total = 0, max = 0;
        for (int i =0; i < N; i++) {
            int h = sc.nextInt();
            if (h >= max) {
                total++;
            }
            max = Math.max(max, h);
        }
        System.out.println(total);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int total = 0, max = 0;
        for (int i =0; i < N; i++) {
            int h = sc.nextInt();
            if (h >= max) {
                total++;
            }
            max = Math.max(max, h);
        }
        System.out.println(total);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int total = 0, max = 0;
        for (int i =0; i < N; i++) {
            int h = sc.nextInt();
            if (h >= max) {
                total++;
            }
            max = Math.max(max, h);
        }
        System.out.println(total);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int total = 0, max = 0;
        for (int i =0; i < N; i++) {
            int h = sc.nextInt();
            if (h >= max) {
                total++;
            }
            max = Math.max(max, h);
        }
        System.out.println(total);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int total = 0 total 0 max = 0; max 0 for (int i =0; i < N; i++) {
            int h = sc.nextInt();
            if (h >= max) {
                total++;
            }
            max = Math.max(max, h);
        } int i =0; int i =0; i 0 i < N i N i++ i++ i {
            int h = sc.nextInt();
            if (h >= max) {
                total++;
            }
            max = Math.max(max, h);
        } {
            int h = sc.nextInt();
            if (h >= max) {
                total++;
            }
            max = Math.max(max, h);
        } int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc if (h >= max) {
                total++;
            } h >= max h max {
                total++;
            } total++ total max = Math.max(max, h) max Math.max(max, h) Math.max Math max h System.out.println(total) System.out.println System.out System System.out total String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int total = 0, max = 0;
        for (int i =0; i < N; i++) {
            int h = sc.nextInt();
            if (h >= max) {
                total++;
            }
            max = Math.max(max, h);
        }
        System.out.println(total);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int total = 0, max = 0;
        for (int i =0; i < N; i++) {
            int h = sc.nextInt();
            if (h >= max) {
                total++;
            }
            max = Math.max(max, h);
        }
        System.out.println(total);
    }
} Main
import java.util.Scanner;

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