gobpmnCounter is a tool for counting the elements, shapes and egdes present in a process
Read the documentation
Start here gobpmn
You can also test the idea behind it directly. Simply follow the link to the lab
In addition, a repository with available applications has now been created. Examples for execution are stored here.