public void updateParameterCount(final EquPart[] equParts, final int myLocInArray)
    {
        setParameterCount(0);

        for (int p = myLocInArray + 1; p < equParts.length; p++)
        {
            final EquPart part = equParts[p];

            if (part.getLevel() <= getLevel())
                break;

            if ((part.getLevel() == (getLevel() + 1)) && part instanceof OpComma)
                setParameterCount(getParameterCount() + 1);
        }

        if (getParameterCount() > 0)
            setParameterCount(getParameterCount() + 1);
    }
public void updateParameterCount ( final EquPart [ ] equParts , final int myLocInArray ) { setParameterCount ( 0 ) ; for ( int p = myLocInArray + 1 ; p < equParts . length ; p ++ ) { final EquPart part = equParts [ p ] ; if ( part . getLevel ( ) <= getLevel ( ) ) break ; if ( ( part . getLevel ( ) == ( getLevel ( ) + 1 ) ) && part instanceof OpComma ) setParameterCount ( getParameterCount ( ) + 1 ) ; } if ( getParameterCount ( ) > 0 ) setParameterCount ( getParameterCount ( ) + 1 ) ; }
<p>
updateParameterCount.
</p>

@param equParts an array of {@link com.obdobion.algebrain.EquPart}
objects.
@param myLocInArray a int.