Histogram sounds like the best solution. Maybe I could add a method to the MagickImage class to retrieve the histogram. Magick++ has a method that returns a list of colors with a count. I will have to look into this.