
import java.util.Scanner;

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        int h = 0;
        int count = 0;
        
        for (int i = 0; i < n; i ++) {
            int in = s.nextInt();
            if (in >= h) {
                h = in;
                count ++;
            }
        }
        
        System.out.println(count);
        
    }
    
} import java.util.Scanner; Scanner java.util public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        int h = 0;
        int count = 0;
        
        for (int i = 0; i < n; i ++) {
            int in = s.nextInt();
            if (in >= h) {
                h = in;
                count ++;
            }
        }
        
        System.out.println(count);
        
    }
    
} Main /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        int h = 0;
        int count = 0;
        
        for (int i = 0; i < n; i ++) {
            int in = s.nextInt();
            if (in >= h) {
                h = in;
                count ++;
            }
        }
        
        System.out.println(count);
        
    } main {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        int h = 0;
        int count = 0;
        
        for (int i = 0; i < n; i ++) {
            int in = s.nextInt();
            if (in >= h) {
                h = in;
                count ++;
            }
        }
        
        System.out.println(count);
        
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int h = 0; h 0 int count = 0; count 0 for (int i = 0; i < n; i ++) {
            int in = s.nextInt();
            if (in >= h) {
                h = in;
                count ++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i ++ i ++ i {
            int in = s.nextInt();
            if (in >= h) {
                h = in;
                count ++;
            }
        } {
            int in = s.nextInt();
            if (in >= h) {
                h = in;
                count ++;
            }
        } int in = s.nextInt(); in s.nextInt() s.nextInt s if (in >= h) {
                h = in;
                count ++;
            } in >= h in h {
                h = in;
                count ++;
            } h = in h in count ++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        int h = 0;
        int count = 0;
        
        for (int i = 0; i < n; i ++) {
            int in = s.nextInt();
            if (in >= h) {
                h = in;
                count ++;
            }
        }
        
        System.out.println(count);
        
    }
    
} public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        int h = 0;
        int count = 0;
        
        for (int i = 0; i < n; i ++) {
            int in = s.nextInt();
            if (in >= h) {
                h = in;
                count ++;
            }
        }
        
        System.out.println(count);
        
    }
    
} Main

import java.util.Scanner;

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        int h = 0;
        int count = 0;
        
        for (int i = 0; i < n; i ++) {
            int in = s.nextInt();
            if (in >= h) {
                h = in;
                count ++;
            }
        }
        
        System.out.println(count);
        
    }
    
}
