Manual:UpdateArticleCount.php/en

updateArticleCount.inc.php is a maintenance script which updates the 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