Index: wp-includes/query.php
===================================================================
--- wp-includes/query.php	(revision 21655)
+++ wp-includes/query.php	(working copy)
@@ -2614,13 +2614,15 @@
 		}
 
 		if ( 'ids' == $q['fields'] ) {
-			$this->posts = $wpdb->get_col($this->request);
-
+			$this->posts = $wpdb->get_col( $this->request );
+			$this->post_count = count( $this->posts );
+ 			
 			return $this->posts;
 		}
 
 		if ( 'id=>parent' == $q['fields'] ) {
-			$this->posts = $wpdb->get_results($this->request);
+			$this->posts = $wpdb->get_results( $this->request );
+			$this->post_count = count( $this->posts );
 
 			$r = array();
 			foreach ( $this->posts as $post )
