add setResultsCount() method to controller