I've been given a XML URL which will provide me with results of a poll, it's a real simple poll, it has Student Name and prefered favourite class.
<Poll>
<PollResult>
<Student>Nigel</Student>
<Choice>3</Choice>
</PollResult>
<PollResult>
<Student>Kim</Student>
<Choice>9</Choice>
</PollResult>
<PollResult>
<Student>Mary</Student>
<Choice>4</Choice>
</PollResult>
<PollResult>
<Student>Tim</Student>
<Choice>9</Choice>
</PollResult>
</Poll>
I need to count how many 9's I have and how many 4's I might have. How can I do this?