word count written in C