Correctly count applications of variables in :search
Merge pull request #1346 from bmsherman/searchVarMatching

Correctly count applications of variables in :search