What is an API to get the Portfolio wise Rule ID count

Through an API, how to get the list of all Rule ID’s along with their count from the Portfolio.

Example as shown in the attachment.

Hi, can some one help on this API,

I need this report for Auditing purpose in Portfolio level.

Thanks In Advance,

Please do not bump threads.

I think this guide will be useful to you:

And – these overall numbers don’t mean much! Especially if you follow the Clean as You Code methodology. How will you use these numbers for audit purposes?