CREATE TABLE table_1342315_17 (district VARCHAR, incumbent VARCHAR)

How many districts does riley joseph wilson?
SELECT COUNT(district) FROM table_1342315_17 WHERE incumbent = "Riley Joseph Wilson"
SELECT COUNT("district") FROM "table_1342315_17" WHERE "Riley Joseph Wilson" = "incumbent"