How to check how many places does an experience has

Hello devs,
If you open asset manager you can see all places which experience owns. How do you count them all with a script, I want to get a number of places that are owned by the experience. Is that even possible?