class StringUtilities {

    public static int count(char ch, String s)
    {
        int count = 0;
        if (s != null)
        {
            for (int index = 0; index < s.length(); index++)
            {
                if (s.charAt(index) == ch)
                {
                    count++;
                }
            }
        }
        return count;
    }

    private  StringUtilities();

}