Count depth and bounding boxes