Counter

Fixes #3