functioning simple jens counter