user: Question: How many parties won the election in the California 23 district?
Columns: ['District', 'Incumbent', 'Party', 'First elected', 'Result', 'Candidates']
Types: ['text', 'text', 'text', 'real', 'text', 'text']
Sample row: ['California 3', 'John E. Moss', 'Democratic', 1952.0, 'Re-elected', 'John E. Moss (D) 72.3% Ivaldo Lenci (R) 27.7%']
SQL:

assistant: SELECT COUNT("Party") FROM "Table" WHERE "District" = 'California 23';