Make wp_query count safe.