You can blow out only the tallest candles. Count how many share the maximum height.
Input
4 3 2 1 3
Output
2