We can get the number of checked checkboxes using the class nameĀ using the following code:
var CheckedNumber = $('.MyClass:checked').size();