Script for calculating the number of occurrences of a, or all, values given n dice with m sides.