MATLAB: How to find the no of colors and name of the colors in an object eg: tomato

digital image processing

how to find the no of colors and name of the colors in an object eg: tomato