Reading pixel data

Does anyone know the most efficient way to read the color buffer if I wanted to find out the number of pixels that where say one specific color?

Thanks
Brian

Use glReadPixels and then scan through the color buffer to count your colors…

Regards.

Eric