|Outcome|Year|Championship|Surface|Opponent|Score|
|---|---|---|---|---|---|
|Runner-up|2002|Canada (Toronto) (1)|Hard|Guillermo Cañas|4–6, 5–7|
|Winner|2003|Montreal|Hard|David Nalbandian|6–1, 6–3|
|Winner|2003|Cincinnati|Hard|Mardy Fish|4–6, 7–6(7–3), 7–6(7–4)|
|Winner|2004|Miami|Hard|Guillermo Coria|6–7(2–7), 6–3, 6–1, ret.|
|Runner-up|2004|Toronto (2)|Hard|Roger Federer|5–7, 3–6|
|Runner-up|2005|Cincinnati|Hard|Roger Federer|3–6, 5–7|
|Winner|2006|Cincinnati (2)|Hard|Juan Carlos Ferrero|6–3, 6–4|
|Runner-up|2010|Indian Wells|Hard|Ivan Ljubičić|6–7(3–7), 6–7(5–7)|
|Winner|2010|Miami (2)|Hard|Tomáš Berdych|7–5, 6–4|

Question: how many times was the championship in miami?
Answer: 2