title: Creating a simple election poll using Ruby
body: <p>I am struggling with this little problem. I need to poll users for election input and output the winner. </p>
  
  <p>Input: Poll 10 people for their vote.
  Output: Print the total votes cast as well as the winner of the election.</p>
  
  <pre><code>Example: 
    Election candidates are: Tom, James, Anne
  
    Vote #1: &lt;Anne&gt;
    Vote #2: &lt;Anne&gt;
    Vote #3: &lt;James&gt;
    Vote #4: &lt;Tom&gt;
    Vote #5: &lt;Tom&gt;
    Vote #6: &lt;Anne&gt;
    Vote #7: &lt;Anne&gt;
    Vote #8: &lt;James&gt;
    Vote #9: &lt;James&gt;
    Vote #10: &lt;Anne&gt;
  
   RESULTS....
  
    Vote Summary:
    Anne - 5 vote(s)
    James - 3 vote(s)
    Tom - 2 vote(s)
  
    WINNER: Anne!
  </code></pre>
  
  <p>I am thinking about using the each iterator to fill all the Votes with users' inputs for candidates. Like this:</p>
  
  <pre><code>(1..10).each do|i| 
  puts "Vote##{i}: " + "&lt;"+gets.chomp+"&gt;"
  end
  </code></pre>
  
  <p>But then, I don't know how to find the total votes for each candidate. Any suggestions will be appreciated.  </p>