Forum:Number of articles in a category from certain namespace

I'm familiar with and, but is there a way to combine them to output the amount of articles in a category from a specific namespace? Specifically I need it to count the number of File: in a category. Duskey ( talk ) 14:41, August 5, 2010 (UTC)
 * Special:Statistics and look at the line Uploaded files? -- 16:19, August 5, 2010 (UTC)
 * Not quite what I was going for, I need the output the number of files in a category. Duskey ( talk ) 20:09, August 5, 2010 (UTC)
 * or -- 15:26, August 6, 2010 (UTC)
 * How do I tweak those to only count the files in a certain category? Duskey ( talk ) 10:41, August 9, 2010 (UTC)
 * Make sure only files are in the category, then replace categoryname in the second magic word with the category's name. -- 10:47, August 9, 2010 (UTC)
 * That's the thing, there's also articles from other namespaces in the category. Duskey ( talk ) 20:03, August 10, 2010 (UTC)


 * Could be done with DPL, it can select a set of pages by namespace and category, and you can use %TOTALPAGES% to get the count (documented here). -- ◄mendel► 20:56, August 10, 2010 (UTC)