Ver originalSELECT COUNT( t2.id )FROM t1, t2WHERE t1.clavePrimaria = t2.clavePrimariaGROUP BY t1.clavePrimaria