implement statistics for events and cashBox