Corrected schematic
Created counter controller state machine