結果 : write a function count(words) in python