create counter

analog