add totalCount to response