count digits, white space, others using switch