Index: wp-includes/query.php
===================================================================
--- wp-includes/query.php	(revision 21819)
+++ wp-includes/query.php	(working copy)
@@ -2777,6 +2777,9 @@
 	function set_found_posts( $q, $limits ) {
 		global $wpdb;
 
+		if ( empty( $limits ) )                         
+			$this->found_posts = count( $this->posts ); 		
+		
 		if ( $q['no_found_rows'] || empty( $limits ) )
 			return;
 
