C project for counting words