How to count checked checkboxes in a matrix table?