Use the following code and see the output:
$args = array('posts_per_page' => -1,'category' => '-1',);$posts_array = get_posts( $args );echo count($posts_array);
As default, id of uncategorized category is 1.
uncategorized