
import java.io.*;
import java.util.*;

public class Main {

	public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> mt = new ArrayList<Integer>();
		int n = Integer.parseInt(sc.next());
		int count = 0;
		int max = 0;
		List<Integer> sbList;
		for(int i =0;i<n;i++) {
			mt.add(Integer.parseInt(sc.next()));
		}
		for(int j =0;j<n;j++) {
			if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			}
		}
		System.out.println(count);
	}

} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> mt = new ArrayList<Integer>();
		int n = Integer.parseInt(sc.next());
		int count = 0;
		int max = 0;
		List<Integer> sbList;
		for(int i =0;i<n;i++) {
			mt.add(Integer.parseInt(sc.next()));
		}
		for(int j =0;j<n;j++) {
			if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			}
		}
		System.out.println(count);
	}

} Main public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> mt = new ArrayList<Integer>();
		int n = Integer.parseInt(sc.next());
		int count = 0;
		int max = 0;
		List<Integer> sbList;
		for(int i =0;i<n;i++) {
			mt.add(Integer.parseInt(sc.next()));
		}
		for(int j =0;j<n;j++) {
			if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			}
		}
		System.out.println(count);
	} main {

		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> mt = new ArrayList<Integer>();
		int n = Integer.parseInt(sc.next());
		int count = 0;
		int max = 0;
		List<Integer> sbList;
		for(int i =0;i<n;i++) {
			mt.add(Integer.parseInt(sc.next()));
		}
		for(int j =0;j<n;j++) {
			if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			}
		}
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> mt = new ArrayList<Integer>(); mt new ArrayList<Integer>() int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int count = 0; count 0 int max = 0; max 0 List<Integer> sbList; sbList for(int i =0;i<n;i++) {
			mt.add(Integer.parseInt(sc.next()));
		} int i =0; int i =0; i 0 i<n i n i++ i++ i {
			mt.add(Integer.parseInt(sc.next()));
		} {
			mt.add(Integer.parseInt(sc.next()));
		} mt.add(Integer.parseInt(sc.next())) mt.add mt Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for(int j =0;j<n;j++) {
			if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			}
		} int j =0; int j =0; j 0 j<n j n j++ j++ j {
			if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			}
		} {
			if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			}
		} if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			} j != 0 j 0 {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			} sbList = mt.subList(0, j+1) sbList mt.subList(0, j+1) mt.subList mt 0 j+1 j 1 max = Collections.max(sbList) max Collections.max(sbList) Collections.max Collections sbList if(max==mt.get(j)){
					count++;
				} max==mt.get(j) max mt.get(j) mt.get mt j {
					count++;
				} count++ count {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> mt = new ArrayList<Integer>();
		int n = Integer.parseInt(sc.next());
		int count = 0;
		int max = 0;
		List<Integer> sbList;
		for(int i =0;i<n;i++) {
			mt.add(Integer.parseInt(sc.next()));
		}
		for(int j =0;j<n;j++) {
			if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			}
		}
		System.out.println(count);
	}

} public class Main {

	public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> mt = new ArrayList<Integer>();
		int n = Integer.parseInt(sc.next());
		int count = 0;
		int max = 0;
		List<Integer> sbList;
		for(int i =0;i<n;i++) {
			mt.add(Integer.parseInt(sc.next()));
		}
		for(int j =0;j<n;j++) {
			if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			}
		}
		System.out.println(count);
	}

} Main

import java.io.*;
import java.util.*;

public class Main {

	public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> mt = new ArrayList<Integer>();
		int n = Integer.parseInt(sc.next());
		int count = 0;
		int max = 0;
		List<Integer> sbList;
		for(int i =0;i<n;i++) {
			mt.add(Integer.parseInt(sc.next()));
		}
		for(int j =0;j<n;j++) {
			if(j != 0) {

				sbList = mt.subList(0, j+1);
				max = Collections.max(sbList);

				if(max==mt.get(j)){
					count++;
				}
			}else {
				count++;
			}
		}
		System.out.println(count);
	}

}
