import java.util.*;

public class Main {
	public static int n, f;
	public static List<Integer> list;
	  public static void main(String[] args) {
		list = new ArrayList<>();
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		f = sc.nextInt();
		for(int i = 0; i < n-1; i++) {
			list.add(sc.nextInt());
		}
		
		int c = 0;
		int max = f;
		for(Integer i:list) {
			if(i >= max) {
				c++;
				max = i;
			}
		}
		System.out.println(c+1);
	  }
} import java.util.*; util.* java public class Main {
	public static int n, f;
	public static List<Integer> list;
	  public static void main(String[] args) {
		list = new ArrayList<>();
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		f = sc.nextInt();
		for(int i = 0; i < n-1; i++) {
			list.add(sc.nextInt());
		}
		
		int c = 0;
		int max = f;
		for(Integer i:list) {
			if(i >= max) {
				c++;
				max = i;
			}
		}
		System.out.println(c+1);
	  }
} Main public static int n n f; f public static List<Integer> list; list public static void main(String[] args) {
		list = new ArrayList<>();
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		f = sc.nextInt();
		for(int i = 0; i < n-1; i++) {
			list.add(sc.nextInt());
		}
		
		int c = 0;
		int max = f;
		for(Integer i:list) {
			if(i >= max) {
				c++;
				max = i;
			}
		}
		System.out.println(c+1);
	  } main {
		list = new ArrayList<>();
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		f = sc.nextInt();
		for(int i = 0; i < n-1; i++) {
			list.add(sc.nextInt());
		}
		
		int c = 0;
		int max = f;
		for(Integer i:list) {
			if(i >= max) {
				c++;
				max = i;
			}
		}
		System.out.println(c+1);
	  } list = new ArrayList<>() list new ArrayList<>() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc f = sc.nextInt() f sc.nextInt() sc.nextInt sc for(int i = 0; i < n-1; i++) {
			list.add(sc.nextInt());
		} int i = 0; int i = 0; i 0 i < n-1 i n-1 n 1 i++ i++ i {
			list.add(sc.nextInt());
		} {
			list.add(sc.nextInt());
		} list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc int c = 0; c 0 int max = f; max f for(Integer i:list) {
			if(i >= max) {
				c++;
				max = i;
			}
		} Integer i list {
			if(i >= max) {
				c++;
				max = i;
			}
		} {
			if(i >= max) {
				c++;
				max = i;
			}
		} if(i >= max) {
				c++;
				max = i;
			} i >= max i max {
				c++;
				max = i;
			} c++ c max = i max i System.out.println(c+1) System.out.println System.out System System.out c+1 c 1 String[] args args public class Main {
	public static int n, f;
	public static List<Integer> list;
	  public static void main(String[] args) {
		list = new ArrayList<>();
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		f = sc.nextInt();
		for(int i = 0; i < n-1; i++) {
			list.add(sc.nextInt());
		}
		
		int c = 0;
		int max = f;
		for(Integer i:list) {
			if(i >= max) {
				c++;
				max = i;
			}
		}
		System.out.println(c+1);
	  }
} public class Main {
	public static int n, f;
	public static List<Integer> list;
	  public static void main(String[] args) {
		list = new ArrayList<>();
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		f = sc.nextInt();
		for(int i = 0; i < n-1; i++) {
			list.add(sc.nextInt());
		}
		
		int c = 0;
		int max = f;
		for(Integer i:list) {
			if(i >= max) {
				c++;
				max = i;
			}
		}
		System.out.println(c+1);
	  }
} Main
import java.util.*;

public class Main {
	public static int n, f;
	public static List<Integer> list;
	  public static void main(String[] args) {
		list = new ArrayList<>();
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		f = sc.nextInt();
		for(int i = 0; i < n-1; i++) {
			list.add(sc.nextInt());
		}
		
		int c = 0;
		int max = f;
		for(Integer i:list) {
			if(i >= max) {
				c++;
				max = i;
			}
		}
		System.out.println(c+1);
	  }
}