SELECT COUNT(*) AS n
FROM events
WHERE session_id = ?;
