import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine().split("")[0]);
        String[] nums = sc.nextLine().split(" ");

        int max = 0;
        int cnt = 0;
        for (String num : nums) {
            int h = Integer.parseInt(num);
            if (max <= h) {
                cnt++;
                max = h;
            }
        }
        System.out.println(cnt);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine().split("")[0]);
        String[] nums = sc.nextLine().split(" ");

        int max = 0;
        int cnt = 0;
        for (String num : nums) {
            int h = Integer.parseInt(num);
            if (max <= h) {
                cnt++;
                max = h;
            }
        }
        System.out.println(cnt);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine().split("")[0]);
        String[] nums = sc.nextLine().split(" ");

        int max = 0;
        int cnt = 0;
        for (String num : nums) {
            int h = Integer.parseInt(num);
            if (max <= h) {
                cnt++;
                max = h;
            }
        }
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine().split("")[0]);
        String[] nums = sc.nextLine().split(" ");

        int max = 0;
        int cnt = 0;
        for (String num : nums) {
            int h = Integer.parseInt(num);
            if (max <= h) {
                cnt++;
                max = h;
            }
        }
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine().split("")[0]); n Integer.parseInt(sc.nextLine().split("")[0]) Integer.parseInt Integer sc.nextLine().split("")[0] sc.nextLine().split("") sc.nextLine().split sc.nextLine() sc.nextLine sc "" 0 String[] nums = sc.nextLine().split(" "); nums sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int max = 0; max 0 int cnt = 0; cnt 0 for (String num : nums) {
            int h = Integer.parseInt(num);
            if (max <= h) {
                cnt++;
                max = h;
            }
        } String num nums {
            int h = Integer.parseInt(num);
            if (max <= h) {
                cnt++;
                max = h;
            }
        } {
            int h = Integer.parseInt(num);
            if (max <= h) {
                cnt++;
                max = h;
            }
        } int h = Integer.parseInt(num); h Integer.parseInt(num) Integer.parseInt Integer num if (max <= h) {
                cnt++;
                max = h;
            } max <= h max h {
                cnt++;
                max = h;
            } cnt++ cnt max = h max h System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine().split("")[0]);
        String[] nums = sc.nextLine().split(" ");

        int max = 0;
        int cnt = 0;
        for (String num : nums) {
            int h = Integer.parseInt(num);
            if (max <= h) {
                cnt++;
                max = h;
            }
        }
        System.out.println(cnt);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine().split("")[0]);
        String[] nums = sc.nextLine().split(" ");

        int max = 0;
        int cnt = 0;
        for (String num : nums) {
            int h = Integer.parseInt(num);
            if (max <= h) {
                cnt++;
                max = h;
            }
        }
        System.out.println(cnt);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine().split("")[0]);
        String[] nums = sc.nextLine().split(" ");

        int max = 0;
        int cnt = 0;
        for (String num : nums) {
            int h = Integer.parseInt(num);
            if (max <= h) {
                cnt++;
                max = h;
            }
        }
        System.out.println(cnt);
    }
}
