protected function count_posts() {
		global $wpdb;

		$query = $this->get_count_query();

		$this->total_posts = $wpdb->get_var( $query );
	}
protected function count_posts() {
		global $wpdb;

		$query = $this->get_count_query();

		$this->total_posts = $wpdb->get_var( $query );
	}
protected function count_posts ( ) { global $ wpdb ; $ query = $ this -> get_count_query ( ) ; $ this -> total_posts = $ wpdb -> get_var ( $ query ) ; }
Counts the total number of posts that match the restrictions, not including pagination.
Counts the total number of posts that match the restrictions not including pagination .