import java.util.*;

public class Main
{
  public static void main(String[] args)
  {
	Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int max = 0, cnt = 0;
    while (n --> 0)
    {
      int h = in.nextInt();
      if (h >= max)
      {
		max = h;
        cnt++;
      }
    }
    System.out.println(cnt);
  }
} import java.util.*; util.* java public class Main
{
  public static void main(String[] args)
  {
	Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int max = 0, cnt = 0;
    while (n --> 0)
    {
      int h = in.nextInt();
      if (h >= max)
      {
		max = h;
        cnt++;
      }
    }
    System.out.println(cnt);
  }
} Main public static void main(String[] args)
  {
	Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int max = 0, cnt = 0;
    while (n --> 0)
    {
      int h = in.nextInt();
      if (h >= max)
      {
		max = h;
        cnt++;
      }
    }
    System.out.println(cnt);
  } main {
	Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int max = 0, cnt = 0;
    while (n --> 0)
    {
      int h = in.nextInt();
      if (h >= max)
      {
		max = h;
        cnt++;
      }
    }
    System.out.println(cnt);
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int max = 0 max 0 cnt = 0; cnt 0 while (n --> 0)
    {
      int h = in.nextInt();
      if (h >= max)
      {
		max = h;
        cnt++;
      }
    } n --> 0 n -- n 0 {
      int h = in.nextInt();
      if (h >= max)
      {
		max = h;
        cnt++;
      }
    } int h = in.nextInt(); h in.nextInt() in.nextInt in if (h >= max)
      {
		max = h;
        cnt++;
      } h >= max h max {
		max = h;
        cnt++;
      } max = h max h cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main
{
  public static void main(String[] args)
  {
	Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int max = 0, cnt = 0;
    while (n --> 0)
    {
      int h = in.nextInt();
      if (h >= max)
      {
		max = h;
        cnt++;
      }
    }
    System.out.println(cnt);
  }
} public class Main
{
  public static void main(String[] args)
  {
	Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int max = 0, cnt = 0;
    while (n --> 0)
    {
      int h = in.nextInt();
      if (h >= max)
      {
		max = h;
        cnt++;
      }
    }
    System.out.println(cnt);
  }
} Main
import java.util.*;

public class Main
{
  public static void main(String[] args)
  {
	Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int max = 0, cnt = 0;
    while (n --> 0)
    {
      int h = in.nextInt();
      if (h >= max)
      {
		max = h;
        cnt++;
      }
    }
    System.out.println(cnt);
  }
}
