Compute a histogram of the number of relays per country. Divide into quintiles (quartiles but 5 instead of 4), give badges to those operators with at least 1 relay in the top 4 quintiles.
This is the same process as the rare ASs badge but done on per-country level than per-AS. You can probably reuse all the same code.
Compute a histogram of the number of relays per country. Divide into quintiles (quartiles but 5 instead of 4), give badges to those operators with at least 1 relay in the top 4 quintiles.
This is the same process as the rare ASs badge but done on per-country level than per-AS. You can probably reuse all the same code.