Tilemap Layer Count

A function for getting the number of layers that exist in a tilemap would be cool. I have a system where a random layer in a tilemap is chosen to be rendered as the background of the titlescreen. I can hardcode the layer count, but a function would be neat too. :slight_smile: