user: Question: How many parties is Tom Foley a member of?
Columns: ['District', 'Incumbent', 'Party', 'Elected', 'Status', 'Opponent']
Types: ['text', 'text', 'text', 'real', 'text', 'text']
Sample row: ['Washington1', 'John Miller', 'Republican', 1984.0, 'Re-elected', 'John Miller (R) 52.0% Cynthia Sullivan (D) 48.0%']
SQL:

assistant: SELECT COUNT("Party") FROM "Table" WHERE "Incumbent" = 'Tom Foley';