Faster than getPixel()

Does anyone know of a quicker method to get the number of pixels of a certain color in a bitmap than using the getPixel method in a for loop? :worried: