complete getOccuranceRateOfTuple