groups inside the page layout


How can I count groups with certain names that are inside the paper space/ page layout.  For example all groups that begin with 'Ref' that are in the 11x17 defined space.  I'm not worried about overlaps so the groups positionX and positionY would be fine.  Can someone steer me in the right direction?