How to Create Stats in the Project Doctype

Hello,
I want to create stats in the Project doctype. Here is an example of stats that are already in the Customer doctype:

Thanks,
Anisha Jain

Please check the example of the customer indicator:

Thanks for providing the solution. It works fine. However, the stats are shown in the ‘Connection’ tab. Is it possible to display the stats in another tab?

You have to check the logic in core!