CountingWords code added