Q's wordcount exercise- solution
Q's wordcount example