SELECT COUNT(*) FROM cscart_categories WHERE category_id = 166 AND company_id = 1 AND storefront_id IN (0, 1)