Implement Luvent:getActionCount()

This allows us to treat the ‘actions’ property of events as private.
Previously we used direct access to count the number of actions in an
event but that breaks the encapsulation we want.  This method removes
the only remain reason we had to use ‘actions’ directly.
README: Describe the public API and add a usage example