SELECT count(disp) as kensu FROM gurucomi_base_index WHERE disp = 1 AND (type1 IN ('法律事務所') OR type2 IN ('法律事務所') OR type3 IN ('法律事務所') ) AND administrative_area_level_1 = '大阪府' AND locality = '寝屋川市'