diff --git a/wp-admin/edit.php b/wp-admin/edit.php
index 9450f9c1da..dee7727692 100644
--- a/wp-admin/edit.php
+++ b/wp-admin/edit.php
@@ -353,12 +353,16 @@ if ( $is_trash && current_user_can($post_type_object->edit_others_cap) ) { ?>
-
' . __( 'Displaying %s–%s of %s' ) . '%s',
- number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
- number_format_i18n( min( $pagenum * $per_page, $wp_query->found_posts ) ),
- number_format_i18n( $wp_query->found_posts ),
- $page_links
-); echo $page_links_text; ?>
+hierarchical ? $wp_query->post_count : $wp_query->found_posts;
+ $page_links_text = sprintf( '' . __( 'Displaying %s–%s of %s' ) . '%s',
+ number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
+ number_format_i18n( min( $pagenum * $per_page, $count_posts ) ),
+ number_format_i18n( $count_posts ),
+ $page_links
+ );
+ echo $page_links_text;
+ ?>