change if to case
Merge pull request #5 from kairiTakemura/count

change if to case