code: public static Number count(Iterable self, Object value) {
          return count(self.iterator(), value);
      }
docs: Counts the number of occurrences of the given value inside this Iterable.
  Comparison is done using Groovy's == operator (using
  <code>compareTo(value) == 0</code> or <code>equals(value)</code> ).
  <p>
  Example usage:
  <pre class="groovyTestCase">assert [2,4,2,1,3,5,2,4,3].count(4) == 2</pre>
  
  @param self  the Iterable within which we count the number of occurrences
  @param value the value being searched for
  @return the number of occurrences
  @since 2.2.0