expandGridCount function

Count of the Cartesian Product