function getNumLogicalValue(params) {
    let numTrue = 0, numFalse = 0;
    H.flattenParams(params, null, true, val => {
        const type = typeof val;
        if (type === "string") {
            if (val === 'TRUE')
                val = true;
            else if (val === 'FALSE')
                val = false;
        } else if (type === "number")
            val = Boolean(val);

        if (typeof val === "boolean") {
            if (val === true)
                numTrue++;
            else
                numFalse++;
        }
    });
    return [numTrue, numFalse];
}
Get the number of values that evaluate to true and false.
Cast Number and "TRUE", "FALSE" to boolean.
Ignore unrelated values.
@ignore
@param {any[]} params
@return {number[]}