E9.52. Solution: Static and recursive size method