'Return tuple counting in/outs/OPTS.  Sum of result may not be len(argTuple), as some args may be in/out.'

def CountInOutOptArgs(self, argTuple):

    ins = out = opts = 0
    for argCheck in argTuple:
        inOut = argCheck[1]
        if (inOut == 0):
            ins = (ins + 1)
            out = (out + 1)
        else:
            if (inOut & pythoncom.PARAMFLAG_FIN):
                ins = (ins + 1)
            if (inOut & pythoncom.PARAMFLAG_FOPT):
                opts = (opts + 1)
            if (inOut & pythoncom.PARAMFLAG_FOUT):
                out = (out + 1)
    return (ins, out, opts)
