Relation field count & ordering by relation count

Use this inside a controller or service