Waterbirds flock to well-run countries, new study shows