Count embedded relations