#!/bin/bash
read mount_num
read mount_height
ary=(`echo $mount_height`)


max_height=0
mount_num_cansea=0
for i in `seq 1 ${#ary[@]}`
do
 target=${ary[$i-1]}
 if [ $target -ge $max_height ]; then
  max_height=$target
  (( mount_num_cansea++ ))
 fi
done

echo $mount_num_cansea