(PECL imagick 2.0.0)
Imagick::getImageColors — Gets the number of unique colors in the image
Gets the number of unique colors in the image.
Returns an integer, the number of unique colors in the image.