implemented word diff count