I need help to count number of pixels


i finally i segmented ct cubic dicom file in 3d box there is output segmented image there is extra circle i put in this image i need to segment extra line in image after i want to count number of pixel of air(black) and lattice(color ) , any one help me please.