import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));		in.readLine();
		String[] d = in.readLine().split(" ");
		byte max = Byte.MIN_VALUE;
		byte num = 0;
		Byte h;
		for(String c : d) {
			h = Byte.valueOf(c);
			if(h >= max) {
				num++;
				max = h;
			}
		}
		System.out.print(num);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));		in.readLine();
		String[] d = in.readLine().split(" ");
		byte max = Byte.MIN_VALUE;
		byte num = 0;
		Byte h;
		for(String c : d) {
			h = Byte.valueOf(c);
			if(h >= max) {
				num++;
				max = h;
			}
		}
		System.out.print(num);
	}
} Main public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));		in.readLine();
		String[] d = in.readLine().split(" ");
		byte max = Byte.MIN_VALUE;
		byte num = 0;
		Byte h;
		for(String c : d) {
			h = Byte.valueOf(c);
			if(h >= max) {
				num++;
				max = h;
			}
		}
		System.out.print(num);
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));		in.readLine();
		String[] d = in.readLine().split(" ");
		byte max = Byte.MIN_VALUE;
		byte num = 0;
		Byte h;
		for(String c : d) {
			h = Byte.valueOf(c);
			if(h >= max) {
				num++;
				max = h;
			}
		}
		System.out.print(num);
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) in.readLine() in.readLine in String[] d = in.readLine().split(" "); d in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " byte max = Byte.MIN_VALUE; max Byte.MIN_VALUE Byte Byte.MIN_VALUE byte num = 0; num 0 Byte h; h for(String c : d) {
			h = Byte.valueOf(c);
			if(h >= max) {
				num++;
				max = h;
			}
		} String c d {
			h = Byte.valueOf(c);
			if(h >= max) {
				num++;
				max = h;
			}
		} {
			h = Byte.valueOf(c);
			if(h >= max) {
				num++;
				max = h;
			}
		} h = Byte.valueOf(c) h Byte.valueOf(c) Byte.valueOf Byte c if(h >= max) {
				num++;
				max = h;
			} h >= max h max {
				num++;
				max = h;
			} num++ num max = h max h System.out.print(num) System.out.print System.out System System.out num String[] args args public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));		in.readLine();
		String[] d = in.readLine().split(" ");
		byte max = Byte.MIN_VALUE;
		byte num = 0;
		Byte h;
		for(String c : d) {
			h = Byte.valueOf(c);
			if(h >= max) {
				num++;
				max = h;
			}
		}
		System.out.print(num);
	}
} public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));		in.readLine();
		String[] d = in.readLine().split(" ");
		byte max = Byte.MIN_VALUE;
		byte num = 0;
		Byte h;
		for(String c : d) {
			h = Byte.valueOf(c);
			if(h >= max) {
				num++;
				max = h;
			}
		}
		System.out.print(num);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));		in.readLine();
		String[] d = in.readLine().split(" ");
		byte max = Byte.MIN_VALUE;
		byte num = 0;
		Byte h;
		for(String c : d) {
			h = Byte.valueOf(c);
			if(h >= max) {
				num++;
				max = h;
			}
		}
		System.out.print(num);
	}
}