class HugeCountStep<S extends Element>
        extends AbstractStep<S, Long> {

    private static final long serialVersionUID = -679873894532085972L;

    private final HugeGraphStep<?, S> originGraphStep;
    private boolean done = false;

    public HugeCountStep(final Traversal.Admin<?, ?> traversal,
                         final HugeGraphStep<?, S> originGraphStep) {
        super(traversal);
        E.checkNotNull(originGraphStep, "originGraphStep");
        this.originGraphStep = originGraphStep;
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof HugeCountStep)) {
            return false;
        }

        if (!super.equals(obj)) {
            return false;
        }

        HugeCountStep other = (HugeCountStep) obj;
        return Objects.equals(this.originGraphStep,
                              other.originGraphStep) && this.done == other.done;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), this.originGraphStep, this.done);
    }

    @Override
    protected Admin<Long> processNextStart() throws NoSuchElementException {<FILL_FUNCTION_BODY>}
}

        if (this.done) {
            throw FastNoSuchElementException.instance();
        }
        this.done = true;
        @SuppressWarnings({"unchecked", "rawtypes"})
        Step<Long, Long> step = (Step) this;
        return this.getTraversal().getTraverserGenerator()
                   .generate(this.originGraphStep.count(), step, 1L);
    
<no_super_class>