Find out how many times the maximum digit appears in the positive integer n.
One positive integer n(n<1018).
Print how many times the maximum digit appears in the positive integer n.