fixed wordcounts

wrong loops XD