dictionary by occurrences