Index: wp-includes/post.php
===================================================================
--- wp-includes/post.php        (revision 21321)
+++ wp-includes/post.php        (working copy)
@@ -1897,6 +1897,7 @@
                $stats[$row['post_status']] = $row['num_posts'];

        $stats = (object) $stats;
+       $stats = apply_filters( 'wp_count_posts', $stats, $type, $perm );
        wp_cache_set($cache_key, $stats, 'counts');

        return $stats;