maximum of list and count of repeat maximum number
i need a script to find a maximum of list and count of repeat maximum number like this :

Main> max1 [2,4,7,2,3,7,7]

output: (7,3)

or

Main> max1 [3,4,5,9,8,8,9,9,9]

output: (9,4)



output: (maximum of list,count of maximum)


thank you
maximum of list and count of repeat maximum number
===

i need a script to find a maximum of list and count of repeat maximum number like this :

Main> max1 [2,4,7,2,3,7,7]

output: (7,3)

or

Main> max1 [3,4,5,9,8,8,9,9,9]

output: (9,4)



output: (maximum of list,count of maximum)


thank you