added number of results update to search function