It should be ranked by per capita population. Tiny countries (like Japan or UK) winning more than half gold of US is way more impressive to me.
3 * gold + 2 * silver + bronze + β1 / population + β2 / GDP
where β1 and β2 are some coefficients.How do we choose these coefficients? Maybe try to run a simple regression to see how historically predictive pop and GDP are of a nations score w/o the GDP and pop terms.
New Zealand is at the top, then Australia, the Netherlands and GB (probably some others, I only calculated the number for the top of the rankings).