title: Maximum number of occurrences a character appears in an array of strings
body: <p>In C#, given the array :</p>
  
  <pre><code>string[] myStrings = new string[] {
    "test#test",
    "##test",
    "######", // Winner (outputs 6)
  };
  </code></pre>
  
  <p>How can I find the maximum number of occurrences that the character <code>#</code> appears in a single string ?</p>
  
  <p>My current solution is :</p>
  
  <pre><code>int maxOccurrences = 0;
  foreach (var myString in myStrings)
  {
      var occurrences = myString.Count(x =&gt; x == '#');
      if (occurrences &gt; maxOccurrences)
      {
          maxOccurrences = occurrences;
      }
  }
  
  return maxOccurrences;
  </code></pre>
  
  <p>Is their a simplier way using linq that can act directly on the <code>myStrings[]</code> array ?</p>
  
  <p>And can this be made into an extension method that can work on any <code>IEnumerable&lt;string&gt;</code> ?</p>