`_layers` is a private method. I assume you checked there is no other way to obtain the count per level?