How to get total number of Nodes in a BPMN Diagram?

I wanted to know the total count of entities in a BPMN Diagram.

For eg. in the following diagram,

There are a total of 8 entities including start , end , task and gateways.

How to find this info ?

Hi @akisonlyforu,

Please check the following rest endpoint:
https://docs.camunda.org/manual/develop/reference/rest/history/activity-instance/get-activity-instance-query-count/
you can query by process definition id or process instance id.
The same can be achieved also via Java API.

Best regards,
Yana