Write SQL query to solve given problem: How many matches were played by the player with player ID 2?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT SUM(CASE WHEN Player_Id = 2 THEN 1 ELSE 0 END) FROM Player_Match