How to sort a collection(like top 20) by count of related collection filtered by related colection's attribute? How to sort a collection(like top 20) by count of related collection filtered by related colection's attribute? mongodb mongodb