public boolean hasLabel(final String label){
        return this.label.equals(label);
    }
Class to track a count associated with a Label
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/traverser/util/LabelledCounter.java