title: TinkerPop 3: Gremlin query to group count by edge direction
body: <p>I have a vertex id to start with and wanted to get counts of in and out edges.</p>
  
  <pre><code>g.traversal().V().has("__id", "1234").groupCount().by(Direction.BOTH)
  </code></pre>
  
  <p>As .by() step wont accept Direction type., is there any alternative way?</p>