completed single process word count example