Count and group by name

How could I do with Grasshopper to get a list by name of the elements of my project and that at the same time tell me the amount of each of them?

Thank you

You could do something like this by utilizing Object Details.

This feels like something that the Elefront plugin was designed for, you should take a look and see if if would help with your workflow.