Use switch case for evaluating the occurrences