Allow WP_Query to return just the count
|Reported by:||scribu||Owned by:|
Currently, you can't ask just for the total number of posts for a certain query.
You have to execute that query and then retrieve the total using SQL_CALC_FOUND_ROWS.
Maybe a 'fields' => 'count' option would do it.
Example where this is needed in Core: #17019