# How can I count the red circles I drew? [duplicate]

• Please post the code as code and not as an image. You should also post the input to your code, img2, so that others can reproduce your result. – C. E. Jan 31 '18 at 10:18
Length[comps] will answer your question. If you only know the Graphics-object (pict=Show[...]) you can count as follows:
Length@Cases[pict, _Circle, Infinity]