import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner scanner = new Scanner(System.in);
		
		String inputN = scanner.nextLine();
		String inputH = scanner.nextLine();

		scanner.close();
		
		int n = Integer.parseInt(inputN);
		String[] hsStr = inputH.split(" ", 0);
		
		Integer[] hs = new Integer[hsStr.length];
		for(int i = 0; i < hsStr.length ; i++) {
			hs[i] = Integer.parseInt(hsStr[i]);
		}

		int viewable = 0;
		int curHighest = 0;
		for(int hn = 0; hn < hs.length; hn++) {
			if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			}
		}
		System.out.println(viewable);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner scanner = new Scanner(System.in);
		
		String inputN = scanner.nextLine();
		String inputH = scanner.nextLine();

		scanner.close();
		
		int n = Integer.parseInt(inputN);
		String[] hsStr = inputH.split(" ", 0);
		
		Integer[] hs = new Integer[hsStr.length];
		for(int i = 0; i < hsStr.length ; i++) {
			hs[i] = Integer.parseInt(hsStr[i]);
		}

		int viewable = 0;
		int curHighest = 0;
		for(int hn = 0; hn < hs.length; hn++) {
			if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			}
		}
		System.out.println(viewable);
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner scanner = new Scanner(System.in);
		
		String inputN = scanner.nextLine();
		String inputH = scanner.nextLine();

		scanner.close();
		
		int n = Integer.parseInt(inputN);
		String[] hsStr = inputH.split(" ", 0);
		
		Integer[] hs = new Integer[hsStr.length];
		for(int i = 0; i < hsStr.length ; i++) {
			hs[i] = Integer.parseInt(hsStr[i]);
		}

		int viewable = 0;
		int curHighest = 0;
		for(int hn = 0; hn < hs.length; hn++) {
			if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			}
		}
		System.out.println(viewable);
	} main {
		// TODO Auto-generated method stub

		Scanner scanner = new Scanner(System.in);
		
		String inputN = scanner.nextLine();
		String inputH = scanner.nextLine();

		scanner.close();
		
		int n = Integer.parseInt(inputN);
		String[] hsStr = inputH.split(" ", 0);
		
		Integer[] hs = new Integer[hsStr.length];
		for(int i = 0; i < hsStr.length ; i++) {
			hs[i] = Integer.parseInt(hsStr[i]);
		}

		int viewable = 0;
		int curHighest = 0;
		for(int hn = 0; hn < hs.length; hn++) {
			if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			}
		}
		System.out.println(viewable);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String inputN = scanner.nextLine(); inputN scanner.nextLine() scanner.nextLine scanner String inputH = scanner.nextLine(); inputH scanner.nextLine() scanner.nextLine scanner scanner.close() scanner.close scanner int n = Integer.parseInt(inputN); n Integer.parseInt(inputN) Integer.parseInt Integer inputN String[] hsStr = inputH.split(" ", 0); hsStr inputH.split(" ", 0) inputH.split inputH " " 0 Integer[] hs = new Integer[hsStr.length]; hs new Integer[hsStr.length] hsStr.length hsStr hsStr.length for(int i = 0; i < hsStr.length ; i++) {
			hs[i] = Integer.parseInt(hsStr[i]);
		} int i = 0; int i = 0; i 0 i < hsStr.length i hsStr.length hsStr hsStr.length i++ i++ i {
			hs[i] = Integer.parseInt(hsStr[i]);
		} {
			hs[i] = Integer.parseInt(hsStr[i]);
		} hs[i] = Integer.parseInt(hsStr[i]) hs[i] hs i Integer.parseInt(hsStr[i]) Integer.parseInt Integer hsStr[i] hsStr i int viewable = 0; viewable 0 int curHighest = 0; curHighest 0 for(int hn = 0; hn < hs.length; hn++) {
			if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			}
		} int hn = 0; int hn = 0; hn 0 hn < hs.length hn hs.length hs hs.length hn++ hn++ hn {
			if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			}
		} {
			if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			}
		} if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			} curHighest <= hs[hn] curHighest hs[hn] hs hn {
				curHighest = hs[hn];
				viewable++;
			} curHighest = hs[hn] curHighest hs[hn] hs hn viewable++ viewable System.out.println(viewable) System.out.println System.out System System.out viewable String[] args args public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner scanner = new Scanner(System.in);
		
		String inputN = scanner.nextLine();
		String inputH = scanner.nextLine();

		scanner.close();
		
		int n = Integer.parseInt(inputN);
		String[] hsStr = inputH.split(" ", 0);
		
		Integer[] hs = new Integer[hsStr.length];
		for(int i = 0; i < hsStr.length ; i++) {
			hs[i] = Integer.parseInt(hsStr[i]);
		}

		int viewable = 0;
		int curHighest = 0;
		for(int hn = 0; hn < hs.length; hn++) {
			if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			}
		}
		System.out.println(viewable);
	}
} public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner scanner = new Scanner(System.in);
		
		String inputN = scanner.nextLine();
		String inputH = scanner.nextLine();

		scanner.close();
		
		int n = Integer.parseInt(inputN);
		String[] hsStr = inputH.split(" ", 0);
		
		Integer[] hs = new Integer[hsStr.length];
		for(int i = 0; i < hsStr.length ; i++) {
			hs[i] = Integer.parseInt(hsStr[i]);
		}

		int viewable = 0;
		int curHighest = 0;
		for(int hn = 0; hn < hs.length; hn++) {
			if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			}
		}
		System.out.println(viewable);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner scanner = new Scanner(System.in);
		
		String inputN = scanner.nextLine();
		String inputH = scanner.nextLine();

		scanner.close();
		
		int n = Integer.parseInt(inputN);
		String[] hsStr = inputH.split(" ", 0);
		
		Integer[] hs = new Integer[hsStr.length];
		for(int i = 0; i < hsStr.length ; i++) {
			hs[i] = Integer.parseInt(hsStr[i]);
		}

		int viewable = 0;
		int curHighest = 0;
		for(int hn = 0; hn < hs.length; hn++) {
			if(curHighest <= hs[hn]) {
				curHighest = hs[hn];
				viewable++;
			}
		}
		System.out.println(viewable);
	}
}