human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Outcome, Year, Championship, Surface, Opponent, Score
###Question: How many years was the opponent petr korda?
gpt
SELECT COUNT Year FROM table WHERE Opponent = petr korda