How I can count the number of checkboxes selected in the image checkbox widget?