You can change the first few lines to get more accurate thread and post counts (and to display the same numbers as the stats block on the forumhome):
PHP Code:
// forum stats start
$vboptions[bburl] = $vbulletin->options[bburl];
$numbersmembers = $db->query_first("SELECT COUNT(*) AS users,MAX(userid) AS max FROM " . TABLE_PREFIX . "user");
$numbermembers = number_format($numbersmembers['users']);
$counter=$db->query_first("SELECT sum(replycount) as posts FROM " . TABLE_PREFIX . "forum");
$totalposts=number_format($counter['posts']);
$counter=$db->query_first("SELECT sum(threadcount) as threads FROM " . TABLE_PREFIX . "forum");
$totalthreads=number_format($counter['threads']);
// forum stats end