While the count()-step works on a collection of components or references, the sum step works on a collection of numerical values.

The following query returns the sum of all of the "total_direct_cost" fields on applications.

g.V().
hasLabel('Application').
values('total_direct_cost').
sum()

sum()-step
Did this answer your question?