Get count of result of query macro

The query macro always returns a table of the result. Sometimes I just want a count of it, how can I do it?

Hi. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Query%20Module and look for count()

Thanks very much, it works.