CREATE TABLE table_1342013_31 (party VARCHAR, result VARCHAR)
What number of party had a candidate  resigned when appointed judge democratic hold?
SELECT COUNT(party) FROM table_1342013_31 WHERE result = "Resigned when appointed judge Democratic hold"