Is there a way, in Photoshop namely, to tell how many colors there are in an image?

Thanks.