title: Java Character.charCount in C#
body: <p>I have java code written to get string code point at location 0 and then to check the number of characters required to represent that code point . I am looking for equivalent c# method which shall take input as code point and return the character count needed to represent the code point </p>
  
  <pre><code> Below is the **Java** code
   final int cp = str.codePointAt(0);
   int count = Character.charCount(cp);
  </code></pre>
  
  <p>Looking for Equivalent C# code</p>
  
  <pre><code> int cp  =  char.ConvertToUtf32(input, 0);
   int count = ????
  </code></pre>