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

public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String tmp = in.readLine();
		int N = Integer.parseInt(tmp);

		tmp = in.readLine();

		String[] Ws = tmp.split(" ");

		int max = Integer.parseInt(Ws[0]);
		int Hi ;

		int count =1;
		for(int i=1;i<N;i++){
			Hi = Integer.parseInt(Ws[i]);
			if(max <= Hi){
				max = Hi;
				count++;
			}
		}

		System.out.print(count);

	}


} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String tmp = in.readLine();
		int N = Integer.parseInt(tmp);

		tmp = in.readLine();

		String[] Ws = tmp.split(" ");

		int max = Integer.parseInt(Ws[0]);
		int Hi ;

		int count =1;
		for(int i=1;i<N;i++){
			Hi = Integer.parseInt(Ws[i]);
			if(max <= Hi){
				max = Hi;
				count++;
			}
		}

		System.out.print(count);

	}


} Main public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String tmp = in.readLine();
		int N = Integer.parseInt(tmp);

		tmp = in.readLine();

		String[] Ws = tmp.split(" ");

		int max = Integer.parseInt(Ws[0]);
		int Hi ;

		int count =1;
		for(int i=1;i<N;i++){
			Hi = Integer.parseInt(Ws[i]);
			if(max <= Hi){
				max = Hi;
				count++;
			}
		}

		System.out.print(count);

	} main {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String tmp = in.readLine();
		int N = Integer.parseInt(tmp);

		tmp = in.readLine();

		String[] Ws = tmp.split(" ");

		int max = Integer.parseInt(Ws[0]);
		int Hi ;

		int count =1;
		for(int i=1;i<N;i++){
			Hi = Integer.parseInt(Ws[i]);
			if(max <= Hi){
				max = Hi;
				count++;
			}
		}

		System.out.print(count);

	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String tmp = in.readLine(); tmp in.readLine() in.readLine in int N = Integer.parseInt(tmp); N Integer.parseInt(tmp) Integer.parseInt Integer tmp tmp = in.readLine() tmp in.readLine() in.readLine in String[] Ws = tmp.split(" "); Ws tmp.split(" ") tmp.split tmp " " int max = Integer.parseInt(Ws[0]); max Integer.parseInt(Ws[0]) Integer.parseInt Integer Ws[0] Ws 0 int Hi ; Hi int count =1; count 1 for(int i=1;i<N;i++){
			Hi = Integer.parseInt(Ws[i]);
			if(max <= Hi){
				max = Hi;
				count++;
			}
		} int i=1; int i=1; i 1 i<N i N i++ i++ i {
			Hi = Integer.parseInt(Ws[i]);
			if(max <= Hi){
				max = Hi;
				count++;
			}
		} {
			Hi = Integer.parseInt(Ws[i]);
			if(max <= Hi){
				max = Hi;
				count++;
			}
		} Hi = Integer.parseInt(Ws[i]) Hi Integer.parseInt(Ws[i]) Integer.parseInt Integer Ws[i] Ws i if(max <= Hi){
				max = Hi;
				count++;
			} max <= Hi max Hi {
				max = Hi;
				count++;
			} max = Hi max Hi count++ count System.out.print(count) System.out.print System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String tmp = in.readLine();
		int N = Integer.parseInt(tmp);

		tmp = in.readLine();

		String[] Ws = tmp.split(" ");

		int max = Integer.parseInt(Ws[0]);
		int Hi ;

		int count =1;
		for(int i=1;i<N;i++){
			Hi = Integer.parseInt(Ws[i]);
			if(max <= Hi){
				max = Hi;
				count++;
			}
		}

		System.out.print(count);

	}


} public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String tmp = in.readLine();
		int N = Integer.parseInt(tmp);

		tmp = in.readLine();

		String[] Ws = tmp.split(" ");

		int max = Integer.parseInt(Ws[0]);
		int Hi ;

		int count =1;
		for(int i=1;i<N;i++){
			Hi = Integer.parseInt(Ws[i]);
			if(max <= Hi){
				max = Hi;
				count++;
			}
		}

		System.out.print(count);

	}


} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String tmp = in.readLine();
		int N = Integer.parseInt(tmp);

		tmp = in.readLine();

		String[] Ws = tmp.split(" ");

		int max = Integer.parseInt(Ws[0]);
		int Hi ;

		int count =1;
		for(int i=1;i<N;i++){
			Hi = Integer.parseInt(Ws[i]);
			if(max <= Hi){
				max = Hi;
				count++;
			}
		}

		System.out.print(count);

	}


}
