An example implementation of a custom statistic: loggin the percentage of active pixels in the ActivityConstraint. (To see the output: right click somewhere outside of the simulation, and select 'inspect'; then go to the 'console' tab).