Implement the average number of tokens on a place calculation for #4

* Implement in utils class TokenMetrics
* Add 5 integration tests