return new IntegerValue(getArgument(0).eval(context, docs, contextSequence).getLength());
return new IntegerValue(getArgument(0).eval(docs, contextSequence).getLength());
    public Sequence eval(StaticContext context, DocumentSet docs, Sequence contextSequence,    	Item contextItem) throws XPathException {    	if(getArgumentCount() == 0)    		return IntegerValue.ZERO;		if(contextItem != null)			contextSequence = contextItem.toSequence();		return new IntegerValue(getArgument(0).eval(context, docs, contextSequence).getLength());	}