Word counting implemented