The sclick event only applies to button, check, radio, list, and combo controls. Therefore, you will never see results of $count. You might want to use edit event or add another button and apply the sclick event to it.