IMI-Statistics-update

DONE
- counting transitions

TODO
- the rest