MATLAB: How to count the number of pipes in an image

countImage Processing Toolboximage segmentationpipe

Hi! I need to inventory the number of pipes in a storage. I'm new using Matlab and I need to know if it's possible to count them using an image. Here's an example of the image.
Can someone help me with the code?
Thank you in advance

Best Answer