I'd say instead of count every pixel, do a sample (random or ordered) or just use a lower res version of the screen.