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