Using Tooling API, or Reports, is there a way to find how many related lists are on each Page Layout ?
I am dealing with a large Org with more than 600 Objects, and some objects have more than 100 page layouts, with many related lists.
I used the following Query to get the count of Page Layouts on each object
SELECT TableEnumOrId, count(Id) FROM Layout WHERE ManageableState='unmanaged' group by TableEnumOrId
Looking for a similar Query or any other approach to get the counts of related lists on each pagelayout as Optimizer Report did not give that detail.