Introduce statistics

First statistics version