import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();
        int count = 0;
        int high = 0;
        int[] mt = new int[num];

        for(int i = 0;i < num;i++){
            mt[i] = sc.nextInt();
        }

        high = mt[0];
        for(int i = 0;i < num;i++){
            if(high <= mt[i]){
                count++;
            }
            if(high < mt[i]){
                high = mt[i];
            }
            
        }
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();
        int count = 0;
        int high = 0;
        int[] mt = new int[num];

        for(int i = 0;i < num;i++){
            mt[i] = sc.nextInt();
        }

        high = mt[0];
        for(int i = 0;i < num;i++){
            if(high <= mt[i]){
                count++;
            }
            if(high < mt[i]){
                high = mt[i];
            }
            
        }
        System.out.println(count);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();
        int count = 0;
        int high = 0;
        int[] mt = new int[num];

        for(int i = 0;i < num;i++){
            mt[i] = sc.nextInt();
        }

        high = mt[0];
        for(int i = 0;i < num;i++){
            if(high <= mt[i]){
                count++;
            }
            if(high < mt[i]){
                high = mt[i];
            }
            
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();
        int count = 0;
        int high = 0;
        int[] mt = new int[num];

        for(int i = 0;i < num;i++){
            mt[i] = sc.nextInt();
        }

        high = mt[0];
        for(int i = 0;i < num;i++){
            if(high <= mt[i]){
                count++;
            }
            if(high < mt[i]){
                high = mt[i];
            }
            
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int count = 0; count 0 int high = 0; high 0 int[] mt = new int[num]; mt new int[num] num for(int i = 0;i < num;i++){
            mt[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            mt[i] = sc.nextInt();
        } {
            mt[i] = sc.nextInt();
        } mt[i] = sc.nextInt() mt[i] mt i sc.nextInt() sc.nextInt sc high = mt[0] high mt[0] mt 0 for(int i = 0;i < num;i++){
            if(high <= mt[i]){
                count++;
            }
            if(high < mt[i]){
                high = mt[i];
            }
            
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            if(high <= mt[i]){
                count++;
            }
            if(high < mt[i]){
                high = mt[i];
            }
            
        } {
            if(high <= mt[i]){
                count++;
            }
            if(high < mt[i]){
                high = mt[i];
            }
            
        } if(high <= mt[i]){
                count++;
            } high <= mt[i] high mt[i] mt i {
                count++;
            } count++ count if(high < mt[i]){
                high = mt[i];
            } high < mt[i] high mt[i] mt i {
                high = mt[i];
            } high = mt[i] high mt[i] mt i System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();
        int count = 0;
        int high = 0;
        int[] mt = new int[num];

        for(int i = 0;i < num;i++){
            mt[i] = sc.nextInt();
        }

        high = mt[0];
        for(int i = 0;i < num;i++){
            if(high <= mt[i]){
                count++;
            }
            if(high < mt[i]){
                high = mt[i];
            }
            
        }
        System.out.println(count);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();
        int count = 0;
        int high = 0;
        int[] mt = new int[num];

        for(int i = 0;i < num;i++){
            mt[i] = sc.nextInt();
        }

        high = mt[0];
        for(int i = 0;i < num;i++){
            if(high <= mt[i]){
                count++;
            }
            if(high < mt[i]){
                high = mt[i];
            }
            
        }
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();
        int count = 0;
        int high = 0;
        int[] mt = new int[num];

        for(int i = 0;i < num;i++){
            mt[i] = sc.nextInt();
        }

        high = mt[0];
        for(int i = 0;i < num;i++){
            if(high <= mt[i]){
                count++;
            }
            if(high < mt[i]){
                high = mt[i];
            }
            
        }
        System.out.println(count);
    }
}