I have a collection in MongoDB that contains an age column, is it possible to count the number of rows that have age column lower than for example 10, between 10 and 30 and upper than 30 in one query? i.e. output be something like this:
age cnt
<=10 607
10< and < 30 304
>=30 405