Write a program that reads a non-empty sequence of integer numbers,
and tells how many of them are equal to the last one.
Input consists of a natural number n> 0,
followed by n integer numbers.
Print the number of elements
that are equal to the last one, this one excluded.