import java.math.BigInteger;
import java.util.*;

public class Main {

    public static void main(String[] args) {
	// write your code here
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    ArrayList<Integer> ar = new ArrayList<>();

    for(int i = 0; i < N; i++){
        ar.add(sc.nextInt());
    }

    int count = 1;
    int max = ar.get(0);
    for(int i = 1;i < N;i++){
        if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        }
    }

    System.out.println(count);
    }










    public static Integer min(List<Integer> ar){
        int min = 10000;
        int index = 0;
        for(int i = 0; i< ar.size();i++){
            if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            }
        }
        return min;
    }
} import java.math.BigInteger; BigInteger java.math import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
	// write your code here
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    ArrayList<Integer> ar = new ArrayList<>();

    for(int i = 0; i < N; i++){
        ar.add(sc.nextInt());
    }

    int count = 1;
    int max = ar.get(0);
    for(int i = 1;i < N;i++){
        if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        }
    }

    System.out.println(count);
    }










    public static Integer min(List<Integer> ar){
        int min = 10000;
        int index = 0;
        for(int i = 0; i< ar.size();i++){
            if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            }
        }
        return min;
    }
} Main public static void main(String[] args) {
	// write your code here
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    ArrayList<Integer> ar = new ArrayList<>();

    for(int i = 0; i < N; i++){
        ar.add(sc.nextInt());
    }

    int count = 1;
    int max = ar.get(0);
    for(int i = 1;i < N;i++){
        if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        }
    }

    System.out.println(count);
    } main {
	// write your code here
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    ArrayList<Integer> ar = new ArrayList<>();

    for(int i = 0; i < N; i++){
        ar.add(sc.nextInt());
    }

    int count = 1;
    int max = ar.get(0);
    for(int i = 1;i < N;i++){
        if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        }
    }

    System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc ArrayList<Integer> ar = new ArrayList<>(); ar new ArrayList<>() for(int i = 0; i < N; i++){
        ar.add(sc.nextInt());
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
        ar.add(sc.nextInt());
    } {
        ar.add(sc.nextInt());
    } ar.add(sc.nextInt()) ar.add ar sc.nextInt() sc.nextInt sc int count = 1; count 1 int max = ar.get(0); max ar.get(0) ar.get ar 0 for(int i = 1;i < N;i++){
        if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        }
    } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
        if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        }
    } {
        if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        }
    } if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        } ar.get(i) >= max ar.get(i) ar.get ar i max {
            count++;
            max = ar.get(i);
        } count++ count max = ar.get(i) max ar.get(i) ar.get ar i System.out.println(count) System.out.println System.out System System.out count String[] args args public static Integer min(List<Integer> ar){
        int min = 10000;
        int index = 0;
        for(int i = 0; i< ar.size();i++){
            if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            }
        }
        return min;
    } min {
        int min = 10000;
        int index = 0;
        for(int i = 0; i< ar.size();i++){
            if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            }
        }
        return min;
    } int min = 10000; min 10000 int index = 0; index 0 for(int i = 0; i< ar.size();i++){
            if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            }
        } int i = 0; int i = 0; i 0 i< ar.size() i ar.size() ar.size ar i++ i++ i {
            if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            }
        } {
            if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            }
        } if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            } min > ar.get(i) min ar.get(i) ar.get ar i {
                min = ar.get(i);
                index = i;
            } min = ar.get(i) min ar.get(i) ar.get ar i index = i index i return min; min List<Integer> ar ar public class Main {

    public static void main(String[] args) {
	// write your code here
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    ArrayList<Integer> ar = new ArrayList<>();

    for(int i = 0; i < N; i++){
        ar.add(sc.nextInt());
    }

    int count = 1;
    int max = ar.get(0);
    for(int i = 1;i < N;i++){
        if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        }
    }

    System.out.println(count);
    }










    public static Integer min(List<Integer> ar){
        int min = 10000;
        int index = 0;
        for(int i = 0; i< ar.size();i++){
            if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            }
        }
        return min;
    }
} public class Main {

    public static void main(String[] args) {
	// write your code here
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    ArrayList<Integer> ar = new ArrayList<>();

    for(int i = 0; i < N; i++){
        ar.add(sc.nextInt());
    }

    int count = 1;
    int max = ar.get(0);
    for(int i = 1;i < N;i++){
        if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        }
    }

    System.out.println(count);
    }










    public static Integer min(List<Integer> ar){
        int min = 10000;
        int index = 0;
        for(int i = 0; i< ar.size();i++){
            if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            }
        }
        return min;
    }
} Main
import java.math.BigInteger;
import java.util.*;

public class Main {

    public static void main(String[] args) {
	// write your code here
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    ArrayList<Integer> ar = new ArrayList<>();

    for(int i = 0; i < N; i++){
        ar.add(sc.nextInt());
    }

    int count = 1;
    int max = ar.get(0);
    for(int i = 1;i < N;i++){
        if(ar.get(i) >= max){
            count++;
            max = ar.get(i);
        }
    }

    System.out.println(count);
    }










    public static Integer min(List<Integer> ar){
        int min = 10000;
        int index = 0;
        for(int i = 0; i< ar.size();i++){
            if(min > ar.get(i)){
                min = ar.get(i);
                index = i;
            }
        }
        return min;
    }
}
