Looks like the count is not being performed correctly. Do you have any other problems with the forum. Do posts and replies show correctly, nothing missing?
Well I simply don't understand how is it possible for the count SQL statements not to work! I have no explanation for that. And you wrote that uploading a new admin_order_config.asp doesn't change it, right?