Write SQL query to solve given problem: How many matches did Team 10 play in 2012?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT SUM(CASE WHEN Team_1 = 10 OR Team_2 = 10 THEN 1 ELSE 0 END) FROM `Match` WHERE SUBSTR(Match_Date, 1, 4) = '2012'