Now regexp search show us only a fact of appearing some words in. The next step would be implement logic: If word found : counter + 1 If word is subject of sentences : counter + 5