title: How to count frequency of an enum in an ArrayList of object
body: <p>As an example to my question... Say I have an <code>ArrayList</code> containing <code>Car</code> objects. A <code>Car</code> object is comprised of a <code>Model</code> and <code>Colour</code> <code>Enum</code>. I want to count how many car models of type Audi are in the list, Audi is an <code>ENUM</code></p>
  
  <p>I have an int variable called int Audi </p>
  
  <p>And I'm trying <code>Audi=Collections.frequency(list, Model.AUDI);</code></p>
  
  <p>However it is not counting the frequency and <code>Audi=0</code></p>
  
  <p>Where am I going wrong and how can I count the frequency of an enum? </p>