add count program using switch