So you confirm, as Peter_Hubbard hinted, that your query is NOT completing after 500ms because just removing the $count stage means that you

To complete the query, rather than a simple cursor batch, you have to

Please share the explain plan.