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)
 * Wikia doesn't have that, right? Duskey ( talk ) 19:59, August 11, 2010 (UTC)
 * DPL has to be enabled Random Time  20:13, August 11, 2010 (UTC)
 * The recommend against it but the do enable it on request. -- 20:31, August 11, 2010 (UTC)
 * It causes a huge load on the server, right? Duskey ( talk ) 21:38, August 11, 2010 (UTC)
 * It can -- 22:17, August 11, 2010 (UTC)
 * DPL used to be enabled on wikis so DPLforum (such as this) would work. Enabling does not cause a load on the server per se. Using it can cause loads, depending on what you want it to do. Any type of code that would count the pages in a category/namespace would cause the same load, though. -- ◄mendel► 14:05, August 12, 2010 (UTC)