Finishes colorOccurrences implementation