Add count occurrences problem