Index: wp-includes/ms-functions.php
===================================================================
--- wp-includes/ms-functions.php	(revision 21018)
+++ wp-includes/ms-functions.php	(working copy)
@@ -1975,8 +1975,8 @@
 	global $wpdb;
 
 	$count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(blog_id) as c FROM $wpdb->blogs WHERE site_id = %d AND spam = '0' AND deleted = '0' and archived = '0'", $wpdb->siteid) );
-	update_site_option( 'blog_count', $count );
+	update_site_option( 'blog_count', absint( $count ) );
 
 	$count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(ID) as c FROM $wpdb->users WHERE spam = '0' AND deleted = '0'") );
-	update_site_option( 'user_count', $count );
+	update_site_option( 'user_count', absint( $count ) );
 }
