def METHOD_NAME(duts, dutname=None):
    num_of_therms = 0
    cmd = "show platform temperature"
    if dutname:
        dut = duts[dutname]
        therm_out = dut.show_and_parse(cmd)
        num_of_therms = len(therm_out)
    else:
        for dut in duts:
            therm_out = dut.show_and_parse(cmd)
            num_of_therms += len(therm_out)
    return num_of_therms