number-of-cases-rectangle