counter demo works