Added the totalItems for get routes.