a working sequential/simple tcp version with word count example