import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        int s = 0 ;
        for(int i = 0 ; i < n ; i++ ){
            boolean ip = true;
            for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            }
            if(ip == true){
                s++;
            }
        }
        System.out.println(s);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        int s = 0 ;
        for(int i = 0 ; i < n ; i++ ){
            boolean ip = true;
            for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            }
            if(ip == true){
                s++;
            }
        }
        System.out.println(s);
        sc.close();
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        int s = 0 ;
        for(int i = 0 ; i < n ; i++ ){
            boolean ip = true;
            for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            }
            if(ip == true){
                s++;
            }
        }
        System.out.println(s);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        int s = 0 ;
        for(int i = 0 ; i < n ; i++ ){
            boolean ip = true;
            for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            }
            if(ip == true){
                s++;
            }
        }
        System.out.println(s);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] h = new int[n]; h new int[n] n for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            h[i] = sc.nextInt();
        } {
            h[i] = sc.nextInt();
        } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc int s = 0 ; s 0 for(int i = 0 ; i < n ; i++ ){
            boolean ip = true;
            for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            }
            if(ip == true){
                s++;
            }
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            boolean ip = true;
            for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            }
            if(ip == true){
                s++;
            }
        } {
            boolean ip = true;
            for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            }
            if(ip == true){
                s++;
            }
        } boolean ip = true; ip true for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            } int j = 0 ; int j = 0 ; j 0 j < i && ip == true j < i j i ip == true ip true j++ j++ j {
                if(h[i] < h[j]){
                    ip = false;
                }
            } {
                if(h[i] < h[j]){
                    ip = false;
                }
            } if(h[i] < h[j]){
                    ip = false;
                } h[i] < h[j] h[i] h i h[j] h j {
                    ip = false;
                } ip = false ip false if(ip == true){
                s++;
            } ip == true ip true {
                s++;
            } s++ s System.out.println(s) System.out.println System.out System System.out s sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        int s = 0 ;
        for(int i = 0 ; i < n ; i++ ){
            boolean ip = true;
            for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            }
            if(ip == true){
                s++;
            }
        }
        System.out.println(s);
        sc.close();
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        int s = 0 ;
        for(int i = 0 ; i < n ; i++ ){
            boolean ip = true;
            for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            }
            if(ip == true){
                s++;
            }
        }
        System.out.println(s);
        sc.close();
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        int s = 0 ;
        for(int i = 0 ; i < n ; i++ ){
            boolean ip = true;
            for(int j = 0 ; j < i && ip == true ; j++ ){
                if(h[i] < h[j]){
                    ip = false;
                }
            }
            if(ip == true){
                s++;
            }
        }
        System.out.println(s);
        sc.close();
    }
}