Very well. I shall respond to myself. I managed to create a counter; it turned out to be remarkably simple.
To accomplish this, one must: