I've seen posts about this, did you search? I think it's probably something like pixelsearch that searches that color, or variations of it,
in the whole picture and returns the result to compare. I think maybe you could code it if you don't find anythink that suits.
Basicaly pixelsearch every pixel, and return the ones that came valid for blue, same for the other picture, count the results, bang.