Thread:Extension talk:DynamicPageList (Wikimedia)/Only counting pages, without listing/reply (3)

I'd also recommend Rich Farmbrough's solution via PAGESINCATEGORY. Otherwise, the proper dpl call would be "format = %TOTALPAGES%,,," not "resultsheader", since you want to manually format the output and not put a number above the output.