The pagecount
directive is supplied by the pagecount plugin.
This directive counts pages currently in the wiki. Example:
[[!pagecount pages="*"]]
The optional parameter "pages" can be a PageSpec specifying the pages to count, default is to count them all.