use tr// to count number of a char