Manual:UpdateArticleCount.php

updateArticleCount.php is a mlink>Special:MyLanguage/Manual:Maintenance scripts|maintenance script which updates the ac>Special:MyLanguage/Manual:Article count|article count.

Usage
php maintenance/updateArticleCount.php or just php updateArticleCount.php

It will only count the number of articles and output the result, without updating the value. If you want to actually update the site statistics table, use this command: php updateArticleCount.php --update