An annual survey from the Pew Research Center found that more countries felt positively about China than America.