get occurrences in a list - DONE