"Number" is used with countable nouns (things that can be counted individually). "Amount" is used with uncountable nouns (things that cannot be counted individually, like liquids, substances). Judges are countable people, so "few in number" is correct, not "few in amount".