count words in c