How to know how many post return a query?
I have this query :
$the_query = new WP_Query(query_posts( array( 'post_type' => 'post', 'posts_per_page' => 3, 'meta_query' => array( array( 'key' => '_end_actu_date', 'value' => date( 'Y-m-d' ), 'compare' => '>=', 'type' => 'DATE' ) ) ) ) );
I have max three posts. But I would like to write display conditions if I have one post or two posts. How can I know how many post the query returning ?
Thanks for answer.