I'm printing posts and I want to get number of results, how can I do that?

This is part of my code:

if (have_posts()) : 

    $args = array(
        'showposts' => '5',
        'paged' => $paged
    );


    $thePosts = query_posts($args);
...

Thank's for help

Edit
Report