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