It may work as well, to count totals of all in and out edges for "A" label:
g.V().hasLabel('A').union( __.count(), __. outE().count(), __.inV().count() )
© 2023 Groups.io