version 1 of simple counter