{n+=o&&o<$1;o=$1}END{print n}