Filtering and counting items in an aggregated list

If i am recalling this correctly this problem was approached here