WIP ENH: Add event histogram example

I have some failing tests, not yet ready for review.
Moved to `utils.py`.