Use more general class CCountingButtons for the toggle button