Add totalCount to searchResult.