Optical switch dimensioning and the classical occupancy problem