A statistics library for agent-based modelling