Select count(contents_mast_kbcl.goods_id) from contents_mast_kbcl where use_yn = 'Y' AND contents_mast_kbcl.goods_id in (select goods_id from contents_category_kbcl where)