What number of party had a candidate resigned when appointed judge democratic hold?
CREATE TABLE table_1342013_31 (
    party VARCHAR,
    result VARCHAR
)
SELECT COUNT(party) FROM table_1342013_31 WHERE result = "Resigned when appointed judge Democratic hold"
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What number of party had a candidate resigned when appointed judge democratic hold? ### Input: CREATE TABLE table_1342013_31 (
    party VARCHAR,
    result VARCHAR
) ### Response: SELECT COUNT(party) FROM table_1342013_31 WHERE result = "Resigned when appointed judge Democratic hold"