Fixed the wrong number of comments.
After fixing the spam.module, I used this code to fix the wrong statistics.
$result = db_query("select * from node_comment_statistics");
while ($node = db_fetch_object($result))
{
echo "Manipulating node: ";
echo "$node->nid";
_comment_update_node_statistics($node->nid);
echo "