You can start with the following example on detecting and measuring circular objects in an image. https://www.mathworks.com/help/images/examples/detect-and-measure-circular-objects-in-an-image.html
The following might also be useful on learning how to identify round objects in an image https://www.mathworks.com/help/images/examples/identifying-round-objects.html
In the above example, please pay close attention to Setp 3 (Remove the Noise) which illustrates how to remove pixels which do not belong to the objects of interest (such as holes in a binary image).