Gets the number of unique colors in the image.