ENH: Add event histogram example

Ready for review.
I think @mluessi might be better able to address this part of the code.