import java.util.Scanner;

public class Main {
    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            int h = sc.nextInt();
            if (m <= h) {
                ans++;
            }
            m = Math.max(m, h);
        }
        System.out.println(ans);
    }

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

    public static void main(String[] args) {
        new Main().run();
    }
} Main void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            int h = sc.nextInt();
            if (m <= h) {
                ans++;
            }
            m = Math.max(m, h);
        }
        System.out.println(ans);
    } run {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            int h = sc.nextInt();
            if (m <= h) {
                ans++;
            }
            m = Math.max(m, h);
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = 0; m 0 int ans = 0; ans 0 for (int i = 0; i < n; i++) {
            int h = sc.nextInt();
            if (m <= h) {
                ans++;
            }
            m = Math.max(m, h);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int h = sc.nextInt();
            if (m <= h) {
                ans++;
            }
            m = Math.max(m, h);
        } {
            int h = sc.nextInt();
            if (m <= h) {
                ans++;
            }
            m = Math.max(m, h);
        } int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc if (m <= h) {
                ans++;
            } m <= h m h {
                ans++;
            } ans++ ans m = Math.max(m, h) m Math.max(m, h) Math.max Math m h System.out.println(ans) System.out.println System.out System System.out ans 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 m = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            int h = sc.nextInt();
            if (m <= h) {
                ans++;
            }
            m = Math.max(m, h);
        }
        System.out.println(ans);
    }

    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 m = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            int h = sc.nextInt();
            if (m <= h) {
                ans++;
            }
            m = Math.max(m, h);
        }
        System.out.println(ans);
    }

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

public class Main {
    void run() {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            int h = sc.nextInt();
            if (m <= h) {
                ans++;
            }
            m = Math.max(m, h);
        }
        System.out.println(ans);
    }

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