add totalCount into results.