getCount method of TXMLObjectIterator interface

I am having problems with the getCount method of the TXMLObjectIterator interface. Even though I specified a quantity parameter to the xquery, the getCount method always returns -1. What am I getting wrong?
Thanks in advance,
Julien Martin.

From my reading of the docs it looks like this is NOT available for an XQuery.