The count-step is used to count components or references in the current selection.
The following query finds the number of components in the organization:
g.V().count()
The following query finds the number of references in the organization:
g.E().count()
The following query finds the number of components in a particular workspace (the id of a workspace can be found by looking at the url bar when within the workspace):
g.V().has('rootWorkspace', 'de21bf3cfd8fc78aaa42406e').count()
The following query finds the number of applications that Ardoq is integrated with:
g.V().
has('Application', 'name', 'Ardoq').
out('Is Integrated With').
hasLabel('Application').
count()