private static Traversal.Admin<?, ?> countStep(final Class<? extends Element> elementClass) {
        return new DefaultGraphTraversal<>().addStep(new TinkerCountGlobalStep(EmptyTraversal.instance(), elementClass));

    }
@author Marko A. Rodriguez (http://markorodriguez.com)
tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/process/traversal/strategy/optimization/TinkerGraphCountStrategyTest.java