SELECT count(*) FROM events WHERE json_extract(json, '$.when') >= ?1