How to count number of selected checkboxes that are checked

Hello, I have a select question that will allow multiple responses. The list contains 6 answers. I would like to count the number of checked answers within answer 2 through 5. I have the following code


var count = $("[type='checkbox']:checked").length;


but this counts all answers checked

Any help will be greatly appreciated. Thank you in advance

Resolved
5 replies