Examples using Python's Counter collection to implement a probability mass function (PMF)