Initial work on the new statistics service for 2.2

This will add the total number of created nodes in the transaction, with no regard to the label the caller asked for.
There is a test case missing that should cover for this.