Okay so I've got a form that includes 4 different select fields.

<label for="type1">Type</label> 
 <select name="type1" id="type1" required>
 <option value="optA">first</option>
 <option value="optB">second</option>
 <option value="optC">third</option>
the other 3 fields are named type2, type3, and type 4, accordingly.

Question is, how can I use javascript to count how many of a given option were selected across the four forms?

The select forms use a typeX.value switch to impose a multiplier on a number input field, and I need to be able to count how many of an option were selected so that I can divide the sum of multiplied inputs by the count of selected options. All I'm asking is how to count the # of each selected option, though.