A simple counter