import java.util.Scanner;

public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] m = new int[n];
		int count = 0;
		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
		}
		count++;
		for (int i = 1; i < n; i++) {
			boolean isSeen = true;
			for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			}
			if (isSeen)
				count++;
		}
		System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] m = new int[n];
		int count = 0;
		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
		}
		count++;
		for (int i = 1; i < n; i++) {
			boolean isSeen = true;
			for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			}
			if (isSeen)
				count++;
		}
		System.out.println(count);
	}
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] m = new int[n];
		int count = 0;
		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
		}
		count++;
		for (int i = 1; i < n; i++) {
			boolean isSeen = true;
			for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			}
			if (isSeen)
				count++;
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] m = new int[n];
		int count = 0;
		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
		}
		count++;
		for (int i = 1; i < n; i++) {
			boolean isSeen = true;
			for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			}
			if (isSeen)
				count++;
		}
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] m = new int[n]; m new int[n] n int count = 0; count 0 for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			m[i] = sc.nextInt();
		} {
			m[i] = sc.nextInt();
		} m[i] = sc.nextInt() m[i] m i sc.nextInt() sc.nextInt sc count++ count for (int i = 1; i < n; i++) {
			boolean isSeen = true;
			for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			}
			if (isSeen)
				count++;
		} int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
			boolean isSeen = true;
			for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			}
			if (isSeen)
				count++;
		} {
			boolean isSeen = true;
			for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			}
			if (isSeen)
				count++;
		} boolean isSeen = true; isSeen true for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			} int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
				if (m[i] < m[j])
					isSeen = false;
			} {
				if (m[i] < m[j])
					isSeen = false;
			} if (m[i] < m[j])
					isSeen = false; m[i] < m[j] m[i] m i m[j] m j isSeen = false isSeen false if (isSeen)
				count++; isSeen 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[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] m = new int[n];
		int count = 0;
		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
		}
		count++;
		for (int i = 1; i < n; i++) {
			boolean isSeen = true;
			for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			}
			if (isSeen)
				count++;
		}
		System.out.println(count);
	}
} public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] m = new int[n];
		int count = 0;
		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
		}
		count++;
		for (int i = 1; i < n; i++) {
			boolean isSeen = true;
			for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			}
			if (isSeen)
				count++;
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] m = new int[n];
		int count = 0;
		for (int i = 0; i < n; i++) {
			m[i] = sc.nextInt();
		}
		count++;
		for (int i = 1; i < n; i++) {
			boolean isSeen = true;
			for (int j = 0; j < i; j++) {
				if (m[i] < m[j])
					isSeen = false;
			}
			if (isSeen)
				count++;
		}
		System.out.println(count);
	}
}
