check number of checkboxes