Exercise 2: Word count