結果 : python function to count characters in a string