結果 : write a function countwords in python