Write SQL query to solve given problem: Among the trains running west, how many trains have three-wheeled, jagged roof cars?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT SUM(CASE WHEN T2.direction = 'west' THEN 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.wheels = 3 AND T1.roof = 'jagged'