method
Tiled.layer_count
Tiled.layer_count(map) -> int
Returns the number of layers (tile, object, image and group layers are all counted; a group's children are flattened in after it).
Tiled.layer_count(map) -> int
Returns the number of layers (tile, object, image and group layers are all counted; a group's children are flattened in after it).