In MongoDB, the default behavior of count() means to ignore skip and limit and count the number of results in the entire original query. So running count will give you exactly what you want.
Passing boolean true to count or calling size instead will give you a counter with a skip or limit.
Brendan W. McAdams
source share