code: public static final int occurencesOf(char toBeFound, char[] array)
  	{
  		int count = 0;
  		for (int i = 0; i < array.length; i++)
  		{
  			if (toBeFound == array[i])
  			{
  				count++;
  			}
  		}
  		return count;
  	}
docs: Answers the number of occurrences of the given character in the given array, 0 if any. <br>
  <br>
  For example:
  <ol>
  <li>
  
  <pre>
  toBeFound = 'b'
  array = { 'a' , 'b', 'b', 'a', 'b', 'a' }
  result =&gt; 3
  </pre>
  
  </li>
  <li>
  
  <pre>
  toBeFound = 'c'
  array = { 'a' , 'b', 'b', 'a', 'b', 'a' }
  result =&gt; 0
  </pre>
  
  </li>
  </ol>
  
  @param toBeFound
  the given character
  @param array
  the given array
  @return the number of occurrences of the given character in the given array, 0 if any
  @throws NullPointerException
  if array is null