add count chars in a string method