move to countResults() method and as the parameter pass the value