I think you are searching for this: http://codex.wordpress.org/Function_Reference/wp_count_posts
<?php
$count_posts = wp_count_posts();
$draft_posts = $count_posts->draft;
?>
I think you are searching for this: http://codex.wordpress.org/Function_Reference/wp_count_posts
<?php
$count_posts = wp_count_posts();
$draft_posts = $count_posts->draft;
?>