Count number of domains in list of cookie to prevent false messages like "multiple websites want to store 1 cookie in total." as one cookie can only be one domain. Also create a copy of the list before sorting to prevent a reorder of cookies in list and the wrong value to be stored in cookie jar.