def count(self, bbType=None):
    if (bbType is None):
        return len(self._boundingBoxes)
    count = 0
    for d in self._boundingBoxes:
        if (d.getBBType() == bbType):
            count += 1
    return count
def count(self, bbType=None):
    if (bbType is None):
        return len(self._boundingBoxes)
    count = 0
    for d in self._boundingBoxes:
        if (d.getBBType() == bbType):
            count += 1
    return count