import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
        int[] a = new int[num];
  	 	for(int i=0; i<num; i++){
            a[i] = sc.nextInt();
        }
        int count = 0;
        for(int j=1; j<num; j++){
        	for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	}
        }
		System.out.println(count+1);
	}
} 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[] a = new int[num];
  	 	for(int i=0; i<num; i++){
            a[i] = sc.nextInt();
        }
        int count = 0;
        for(int j=1; j<num; j++){
        	for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	}
        }
		System.out.println(count+1);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
        int[] a = new int[num];
  	 	for(int i=0; i<num; i++){
            a[i] = sc.nextInt();
        }
        int count = 0;
        for(int j=1; j<num; j++){
        	for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	}
        }
		System.out.println(count+1);
	} main {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
        int[] a = new int[num];
  	 	for(int i=0; i<num; i++){
            a[i] = sc.nextInt();
        }
        int count = 0;
        for(int j=1; j<num; j++){
        	for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	}
        }
		System.out.println(count+1);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int[] a = new int[num]; a new int[num] num for(int i=0; i<num; i++){
            a[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<num i num i++ i++ i {
            a[i] = sc.nextInt();
        } {
            a[i] = sc.nextInt();
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int count = 0; count 0 for(int j=1; j<num; j++){
        	for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	}
        } int j=1; int j=1; j 1 j<num j num j++ j++ j {
        	for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	}
        } {
        	for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	}
        } for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	} int i=0; int i=0; i 0 i<j i j i++ i++ i {
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	} {
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	} if(a[i] > a[j]) break; a[i] > a[j] a[i] a i a[j] a j break; if(i+1 == j) count++; i+1 == j i+1 i 1 j count++ count System.out.println(count+1) System.out.println System.out System System.out count+1 count 1 String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
        int[] a = new int[num];
  	 	for(int i=0; i<num; i++){
            a[i] = sc.nextInt();
        }
        int count = 0;
        for(int j=1; j<num; j++){
        	for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	}
        }
		System.out.println(count+1);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
        int[] a = new int[num];
  	 	for(int i=0; i<num; i++){
            a[i] = sc.nextInt();
        }
        int count = 0;
        for(int j=1; j<num; j++){
        	for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	}
        }
		System.out.println(count+1);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
        int[] a = new int[num];
  	 	for(int i=0; i<num; i++){
            a[i] = sc.nextInt();
        }
        int count = 0;
        for(int j=1; j<num; j++){
        	for(int i=0; i<j; i++){
             if(a[i] > a[j]) break;
             if(i+1 == j) count++;       
        	}
        }
		System.out.println(count+1);
	}
}