Number of Elements in a Cartesian Product