[WIP] Counting commits

Just a first step.

The code cries for refactoring... I know :wink: