import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] N = new int[n];
        int idx = 0;
        while(sc.hasNext()) N[idx++]=sc.nextInt();
        int max = N[0];
        int ans =1;
        for (int i=1;i<N.length;++i){
            if (N[i]>=max) {max = N[i];++ans;}
        }
        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[] N = new int[n];
        int idx = 0;
        while(sc.hasNext()) N[idx++]=sc.nextInt();
        int max = N[0];
        int ans =1;
        for (int i=1;i<N.length;++i){
            if (N[i]>=max) {max = N[i];++ans;}
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] N = new int[n];
        int idx = 0;
        while(sc.hasNext()) N[idx++]=sc.nextInt();
        int max = N[0];
        int ans =1;
        for (int i=1;i<N.length;++i){
            if (N[i]>=max) {max = N[i];++ans;}
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] N = new int[n];
        int idx = 0;
        while(sc.hasNext()) N[idx++]=sc.nextInt();
        int max = N[0];
        int ans =1;
        for (int i=1;i<N.length;++i){
            if (N[i]>=max) {max = N[i];++ans;}
        }
        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[] N = new int[n]; N new int[n] n int idx = 0; idx 0 while(sc.hasNext()) N[idx++]=sc.nextInt(); sc.hasNext() sc.hasNext sc N[idx++]=sc.nextInt() N[idx++] N idx++ idx sc.nextInt() sc.nextInt sc int max = N[0]; max N[0] N 0 int ans =1; ans 1 for (int i=1;i<N.length;++i){
            if (N[i]>=max) {max = N[i];++ans;}
        } int i=1; int i=1; i 1 i<N.length i N.length N N.length ++i ++i i {
            if (N[i]>=max) {max = N[i];++ans;}
        } {
            if (N[i]>=max) {max = N[i];++ans;}
        } if (N[i]>=max) {max = N[i];++ans;} N[i]>=max N[i] N i max {max = N[i];++ans;} max = N[i] max N[i] N i ++ans ans 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[] N = new int[n];
        int idx = 0;
        while(sc.hasNext()) N[idx++]=sc.nextInt();
        int max = N[0];
        int ans =1;
        for (int i=1;i<N.length;++i){
            if (N[i]>=max) {max = N[i];++ans;}
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] N = new int[n];
        int idx = 0;
        while(sc.hasNext()) N[idx++]=sc.nextInt();
        int max = N[0];
        int ans =1;
        for (int i=1;i<N.length;++i){
            if (N[i]>=max) {max = N[i];++ans;}
        }
        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[] N = new int[n];
        int idx = 0;
        while(sc.hasNext()) N[idx++]=sc.nextInt();
        int max = N[0];
        int ans =1;
        for (int i=1;i<N.length;++i){
            if (N[i]>=max) {max = N[i];++ans;}
        }
        System.out.println(ans);
    }
}
