Update total to totalResults