Canada is the fourth most-accepting country in the world when it comes to immigrants, a new study by Gallup says.

Canada scored 8.14 out of a possible 9 in Gallup’s Migrant Acceptance Index, which put it fourth out of 140 countries in terms of how accepting each country’s population is of newcomers. Iceland was ranked first, followed by New Zealand and Rwanda.

Gallup says it created the index to assess people’s acceptance of immigrants based on what it calls “increasing degrees of proximity.” This is assessed through three questions that ask respondents whether immigrants living in their country, becoming their neighbours and marrying into their homes are “good things or bad things.”

Canada’s score is based on the answers of 2,000 Canadians aged 15 and older who were surveyed between August 10 and November 29, 2017. The summer of 2017 saw a significant spike in the number of people crossing into Canada from the United States and claiming asylum in response to immigration policies introduced by U.S. President Donald Trump.

The United States ranked ninth on the index with a score of 7.86.