Color Detection and Tracking

I have 3 red boxes on a gray foam mat and am attempting to see if I see all 3 boxes or only 2 boxes and the X location of said boxes.

I have found tutorials to find one box and get the location of that box but not for more than one. Can any one help me with an example or tutorial or lead me down the right path?