Character-Count add method count_char_by_type to String class