Also, it seems like capitalist countries have freer markets than communist/socialist ones. Though you’d have to give examples of communist/socialist countries.
Generally they have many categories. Rate the market conditions on a scale (some of the measures are quantitative). Average the ratings together to get one number comparing countries