count word to compare