get_multiplicity: Find the number of times a value k occurs in a partition that is being
generated at random by the multiplicity() function. The resulting
multiplicity is then passed back to the multiplicity() function along with
an updated value of count and an updated dictionary D
Description
Find the number of times a value k occurs in a partition
that is being generated at random by the multiplicity()
function. The resulting multiplicity is then passed back
to the multiplicity() function along with an updated
value of count and an updated dictionary D