Add StateCounter