Find out how many times the maximum digit appears in the positive integer n.
One positive integer n\:(n < 10^{18}).
Print how many times the maximum digit appears in the positive integer n.
Example 1
Example 2