Could this be simpified to `var checked checkboxes.find(':checked').size()