Hello nopaixx,
I think you can use something like the following to get the number of aligned cameras in the chunk:
def numaligned(chunk):
num_aligned = 0
for camera in chunk.cameras:
if camera.transform:
num_aligned += 1
num_not_aligned = len(chunk.cameras) - num_aligned
return num_aligned