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