title: Get entity and count of objects in parent entity
body: <p>I have 2 entities, say <strong>'recipe'</strong> and <strong>'collection'</strong>.</p>
  
  <p>They have a n:m relationship. Each recipe is member of possibly multiple collections. And each collection can have a number of different recipes.</p>
  
  <p>One time I have to display all recipes and another time I display all collections of theses recipes (without the multiples).</p>
  
  <p>I have filters for the properties of the recipes. Say, I have 1000 recipes in 10 collections (spread randomly). When I apply a filter, the found number of recipes gets smaller and therefor it is possible there are some recipes missing, which leads to that some recipes of specific collections are completely missing.</p>
  
  <p><strong>Now I want to display all relational collections, based on the found recipes.</strong> And also <strong>the number of found recipes in these collections</strong></p>
  
  <p>How do I do it intelligently and efficiently?</p>