Forum:Count pages in main namespace

Does anyone know a way to easily count the non-redirect pages in ONLY the main namespace? Or at least to count the redirects, which can be subtracted from the total page count.

Thanks! Psychoadept (talk) 13:00, August 16, 2012 (UTC)