import java.util.*;
import java.io.*;

public class Main {

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            int n = Integer.parseInt(in.readLine());
            StringTokenizer st = new StringTokenizer(in.readLine());
            int tallest = 0;
            int res = 0;
            for (int i = 0; i < n; i++) {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            }
            System.out.println(res);
        } catch (IOException ex) {

        }
    }

} import java.util.*; util.* java import java.io.*; io.* java public class Main {

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            int n = Integer.parseInt(in.readLine());
            StringTokenizer st = new StringTokenizer(in.readLine());
            int tallest = 0;
            int res = 0;
            for (int i = 0; i < n; i++) {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            }
            System.out.println(res);
        } catch (IOException ex) {

        }
    }

} Main public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            int n = Integer.parseInt(in.readLine());
            StringTokenizer st = new StringTokenizer(in.readLine());
            int tallest = 0;
            int res = 0;
            for (int i = 0; i < n; i++) {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            }
            System.out.println(res);
        } catch (IOException ex) {

        }
    } main {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            int n = Integer.parseInt(in.readLine());
            StringTokenizer st = new StringTokenizer(in.readLine());
            int tallest = 0;
            int res = 0;
            for (int i = 0; i < n; i++) {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            }
            System.out.println(res);
        } catch (IOException ex) {

        }
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) try {
            int n = Integer.parseInt(in.readLine());
            StringTokenizer st = new StringTokenizer(in.readLine());
            int tallest = 0;
            int res = 0;
            for (int i = 0; i < n; i++) {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            }
            System.out.println(res);
        } catch (IOException ex) {

        } catch (IOException ex) {

        } IOException ex {

        } {
            int n = Integer.parseInt(in.readLine());
            StringTokenizer st = new StringTokenizer(in.readLine());
            int tallest = 0;
            int res = 0;
            for (int i = 0; i < n; i++) {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            }
            System.out.println(res);
        } int n = Integer.parseInt(in.readLine()); n Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in StringTokenizer st = new StringTokenizer(in.readLine()); st new StringTokenizer(in.readLine()) int tallest = 0; tallest 0 int res = 0; res 0 for (int i = 0; i < n; i++) {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            } {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            } int x = Integer.parseInt(st.nextToken()); x Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                } x >= tallest x tallest {
                    tallest = Math.max(tallest, x);
                    res++;
                } tallest = Math.max(tallest, x) tallest Math.max(tallest, x) Math.max Math tallest x res++ res System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            int n = Integer.parseInt(in.readLine());
            StringTokenizer st = new StringTokenizer(in.readLine());
            int tallest = 0;
            int res = 0;
            for (int i = 0; i < n; i++) {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            }
            System.out.println(res);
        } catch (IOException ex) {

        }
    }

} public class Main {

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            int n = Integer.parseInt(in.readLine());
            StringTokenizer st = new StringTokenizer(in.readLine());
            int tallest = 0;
            int res = 0;
            for (int i = 0; i < n; i++) {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            }
            System.out.println(res);
        } catch (IOException ex) {

        }
    }

} Main
import java.util.*;
import java.io.*;

public class Main {

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        try {
            int n = Integer.parseInt(in.readLine());
            StringTokenizer st = new StringTokenizer(in.readLine());
            int tallest = 0;
            int res = 0;
            for (int i = 0; i < n; i++) {
                int x = Integer.parseInt(st.nextToken());
                if (x >= tallest) {
                    tallest = Math.max(tallest, x);
                    res++;
                }
            }
            System.out.println(res);
        } catch (IOException ex) {

        }
    }

}