private static int count( String s, char c )
    {
        int a = 0;
        for( int i = 0; i < s.length(); i++ )
        {
            if( s.charAt( i ) == c )
            {
                a++;
            }
        }
        return a;
    }