This version of Unity is unsupported.

Collider2D.shapeCount

public int shapeCount;

Description

The number of active PhysicsShape2D the Collider2D is currently using.

If the Collider2D is disabled, inactive or in error then this count will be zero.