hamming and word count soltuions