Add counts to resource list endpoints for better pagination.