Updated the example and fixed the counter selector mechanism.