title: Count checked checkboxes
body: <p>I am new to HTML, I have a list of checkboxes on a form in an HTML page.</p>
  
  <p>Each checkbox on each line represents a different category "I" "D" "C" and "S".</p>
  
  <p>Part of my code is as follows:</p>
  
  <pre><code>&lt;form&gt;
      1.&lt;input type="checkbox" name="Personality_1.1" value="I"/&gt;Animated &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp
      &lt;input type="checkbox" name="Personality_1.2" value="D" /&gt;Adventurous &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp
      &lt;input type="checkbox" name="Personality_1.3" value="C" /&gt;Analytical &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp
      &lt;input type="checkbox" name="Personality_1.4" value="S" /&gt;Adaptable&lt;br /&gt;&lt;br /&gt;
  
      2.&lt;input type="checkbox" name="Personality_2.1" value="I"/&gt;Playful&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp
      &lt;input type="checkbox" name="Personality_2.2" value="D" /&gt;Persuasive&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp
      &lt;input type="checkbox" name="Personality_2.3" value="C" /&gt;Persistent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp
      &lt;input type="checkbox" name="Personality_2.4" value="S" /&gt;Peaceful&lt;br /&gt;&lt;br /&gt;
  
      3.&lt;input type="checkbox" name="Personality_3.1" value="I"/&gt;Sociable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp
      &lt;input type="checkbox" name="Personality_3.2" value="D" /&gt;Strong Willed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp
      &lt;input type="checkbox" name="Personality_3.3" value="C" /&gt;Self-sacraficing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp
      &lt;input type="checkbox" name="Personality_3.4" value="S" /&gt;Submissive&lt;br /&gt;&lt;br /&gt;
  </code></pre>
  
  <p>I need to find out how many value "I" checkboxes have been checked, how many value "D" checkboxes have been checked, and so on, and then display the total of each category when the form is submitted.</p>
  
  <p>Such a: "Five D's have been checked" "Three C's have been checked"</p>
  
  <p>Is there a way I can do this with Javascript or PHP? If so can anyone help direct me to figure out how to do so?</p>