結果 : function to count number of characters in a string in python