Write SQL query to solve given problem: Among the devices with event no.2 happening, how many of them are vivo devices?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(T1.device_id) FROM phone_brand_device_model2 AS T1 INNER JOIN events AS T2 ON T2.device_id = T1.device_id WHERE T1.phone_brand = 'vivo' AND T2.event_id = 2