Hi Everyone,
I have a question, how can i get number of layer presented on screen. All of them are layers from Feature Service and I would like to kow this number to be able to configure widgets like Layer List with new layers added to map.

Because newly added layers to the map will not appear in existing apps widgets.
BR Robert