Subquery to count value based upon variable in parent query

Printable View