I found this weird. I am running the aggregation query according to the requirements mentioned. The count that I am finding and the correct answer is different. Am I doing anything wrong? It’s just me getting different counts or that’s the same for everyone?
Also, I tried executing the same from command line (Using Mongoclient) and found the same incorrect answer that I am talking about in the post.