import 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];
        H[0] = sc.nextInt();
        int max = H[0];
        int ans = 1;

        for(int i=1; i<N; i++){
            H[i] = sc.nextInt();
            max = Math.max(max, H[i]);
            if(H[i]==max){
                ans += 1;
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        H[0] = sc.nextInt();
        int max = H[0];
        int ans = 1;

        for(int i=1; i<N; i++){
            H[i] = sc.nextInt();
            max = Math.max(max, H[i]);
            if(H[i]==max){
                ans += 1;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        H[0] = sc.nextInt();
        int max = H[0];
        int ans = 1;

        for(int i=1; i<N; i++){
            H[i] = sc.nextInt();
            max = Math.max(max, H[i]);
            if(H[i]==max){
                ans += 1;
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        H[0] = sc.nextInt();
        int max = H[0];
        int ans = 1;

        for(int i=1; i<N; i++){
            H[i] = sc.nextInt();
            max = Math.max(max, H[i]);
            if(H[i]==max){
                ans += 1;
            }
        }
        System.out.println(ans);
    } 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 H[0] = sc.nextInt() H[0] H 0 sc.nextInt() sc.nextInt sc int max = H[0]; max H[0] H 0 int ans = 1; ans 1 for(int i=1; i<N; i++){
            H[i] = sc.nextInt();
            max = Math.max(max, H[i]);
            if(H[i]==max){
                ans += 1;
            }
        } int i=1; int i=1; i 1 i<N i N i++ i++ i {
            H[i] = sc.nextInt();
            max = Math.max(max, H[i]);
            if(H[i]==max){
                ans += 1;
            }
        } {
            H[i] = sc.nextInt();
            max = Math.max(max, H[i]);
            if(H[i]==max){
                ans += 1;
            }
        } H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc max = Math.max(max, H[i]) max Math.max(max, H[i]) Math.max Math max H[i] H i if(H[i]==max){
                ans += 1;
            } H[i]==max H[i] H i max {
                ans += 1;
            } ans += 1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans 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];
        H[0] = sc.nextInt();
        int max = H[0];
        int ans = 1;

        for(int i=1; i<N; i++){
            H[i] = sc.nextInt();
            max = Math.max(max, H[i]);
            if(H[i]==max){
                ans += 1;
            }
        }
        System.out.println(ans);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] H = new int[N];
        H[0] = sc.nextInt();
        int max = H[0];
        int ans = 1;

        for(int i=1; i<N; i++){
            H[i] = sc.nextInt();
            max = Math.max(max, H[i]);
            if(H[i]==max){
                ans += 1;
            }
        }
        System.out.println(ans);
    }
} Main
import 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];
        H[0] = sc.nextInt();
        int max = H[0];
        int ans = 1;

        for(int i=1; i<N; i++){
            H[i] = sc.nextInt();
            max = Math.max(max, H[i]);
            if(H[i]==max){
                ans += 1;
            }
        }
        System.out.println(ans);
    }
}