Returns a dictionary representing the distribution of the list.