Solve problem "The number of elements equal to the maximum" online - Learn Python 3 - Snakify

The number of elements equal to the maximum


Statement

A sequence consists of integer numbers and ends with the number 0. Determine how many elements of this sequence are equal to its largest element.

In all the problems input the data using input() and print the result using print().