import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        b();
    }

    private static void b() {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int c = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(sc.next());
            if (h >= max) {
                c++;
                max = h;
            }
        }
        p(c);
    }

    private static void p(Object x) {
        System.out.println(x.toString());
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        b();
    }

    private static void b() {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int c = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(sc.next());
            if (h >= max) {
                c++;
                max = h;
            }
        }
        p(c);
    }

    private static void p(Object x) {
        System.out.println(x.toString());
    }
} Main public static void main(String[] args) {
        b();
    } main {
        b();
    } b() b String[] args args private static void b() {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int c = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(sc.next());
            if (h >= max) {
                c++;
                max = h;
            }
        }
        p(c);
    } b {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int c = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(sc.next());
            if (h >= max) {
                c++;
                max = h;
            }
        }
        p(c);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int c = 0; c 0 int max = 0; max 0 for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(sc.next());
            if (h >= max) {
                c++;
                max = h;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int h = Integer.parseInt(sc.next());
            if (h >= max) {
                c++;
                max = h;
            }
        } {
            int h = Integer.parseInt(sc.next());
            if (h >= max) {
                c++;
                max = h;
            }
        } int h = Integer.parseInt(sc.next()); h Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (h >= max) {
                c++;
                max = h;
            } h >= max h max {
                c++;
                max = h;
            } c++ c max = h max h p(c) p c private static void p(Object x) {
        System.out.println(x.toString());
    } p {
        System.out.println(x.toString());
    } System.out.println(x.toString()) System.out.println System.out System System.out x.toString() x.toString x Object x x public class Main {
    public static void main(String[] args) {
        b();
    }

    private static void b() {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int c = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(sc.next());
            if (h >= max) {
                c++;
                max = h;
            }
        }
        p(c);
    }

    private static void p(Object x) {
        System.out.println(x.toString());
    }
} public class Main {
    public static void main(String[] args) {
        b();
    }

    private static void b() {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int c = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(sc.next());
            if (h >= max) {
                c++;
                max = h;
            }
        }
        p(c);
    }

    private static void p(Object x) {
        System.out.println(x.toString());
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        b();
    }

    private static void b() {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int c = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.parseInt(sc.next());
            if (h >= max) {
                c++;
                max = h;
            }
        }
        p(c);
    }

    private static void p(Object x) {
        System.out.println(x.toString());
    }
}
