get the numbre all selected checkbox with same class code example
Example 1: jquery get all checkbox checked
$('.theClass:checkbox:checked')
Example 2: jquery get selected checkboxes
var selected = [];
$('#checkboxes input:checked').each(function() {
selected.push($(this).attr('name'));
});