A simple counter for use with OBS