[feature] added calculation of events count