title: getCount of a specific pattern in a string using code points in java
body: <p><code>public static int getCount(String string1, String pattern1)</code></p>
  
  <p>I want to find the count of the pattern in string1 using code points and not regex. For instance,  the string is 'abd555c' and the pattern1 is '55'. So the output should be 2 using code points. How would i implement this method?</p>