Reduce the expensive query to get the total count of threads.
The expensive threads.count()
query will result in a significantly expensive
query for large lists (35ms) and it isn't really needed since all we need to
figure out is if there are any emails.
Edited by Abhilash Raj