print an integer representing the count of the specific character