select CC.Text, count(*) HowMany 
from Contents CC 
Join Parts PP ON CC.ContentID = PP.ContentID
Join Items IP ON IP.PreviousID = pp.ItemID
where type = 20042
Group By cc.TEXT