import java.util.Scanner;

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

		int n = sc.nextInt();
		
		int list[] = new int[n];
		for(int i=0; i<list.length; i++){
			list[i] = sc.nextInt();
		}

		int maxhigh = list[0];
		int count = 1;
		for(int j=1; j<list.length; j++){
			if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			}
		}

		System.out.println(count);
    }
} 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 list[] = new int[n];
		for(int i=0; i<list.length; i++){
			list[i] = sc.nextInt();
		}

		int maxhigh = list[0];
		int count = 1;
		for(int j=1; j<list.length; j++){
			if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			}
		}

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

		int n = sc.nextInt();
		
		int list[] = new int[n];
		for(int i=0; i<list.length; i++){
			list[i] = sc.nextInt();
		}

		int maxhigh = list[0];
		int count = 1;
		for(int j=1; j<list.length; j++){
			if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			}
		}

		System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		
		int list[] = new int[n];
		for(int i=0; i<list.length; i++){
			list[i] = sc.nextInt();
		}

		int maxhigh = list[0];
		int count = 1;
		for(int j=1; j<list.length; j++){
			if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			}
		}

		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 int list[] = new int[n]; list new int[n] n for(int i=0; i<list.length; i++){
			list[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<list.length i list.length list list.length i++ i++ i {
			list[i] = sc.nextInt();
		} {
			list[i] = sc.nextInt();
		} list[i] = sc.nextInt() list[i] list i sc.nextInt() sc.nextInt sc int maxhigh = list[0]; maxhigh list[0] list 0 int count = 1; count 1 for(int j=1; j<list.length; j++){
			if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			}
		} int j=1; int j=1; j 1 j<list.length j list.length list list.length j++ j++ j {
			if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			}
		} {
			if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			}
		} if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			} maxhigh <= list[j] maxhigh list[j] list j {
				count++;
				maxhigh = list[j];
			} count++ count maxhigh = list[j] maxhigh list[j] list j 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 n = sc.nextInt();
		
		int list[] = new int[n];
		for(int i=0; i<list.length; i++){
			list[i] = sc.nextInt();
		}

		int maxhigh = list[0];
		int count = 1;
		for(int j=1; j<list.length; j++){
			if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			}
		}

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

		int n = sc.nextInt();
		
		int list[] = new int[n];
		for(int i=0; i<list.length; i++){
			list[i] = sc.nextInt();
		}

		int maxhigh = list[0];
		int count = 1;
		for(int j=1; j<list.length; j++){
			if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			}
		}

		System.out.println(count);
    }
} 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 list[] = new int[n];
		for(int i=0; i<list.length; i++){
			list[i] = sc.nextInt();
		}

		int maxhigh = list[0];
		int count = 1;
		for(int j=1; j<list.length; j++){
			if(maxhigh <= list[j]){
				count++;
				maxhigh = list[j];
			}
		}

		System.out.println(count);
    }
}