SELECT 
  COUNT(
    DISTINCT storefronts.storefront_id
  ) 
FROM 
  cscart_storefronts AS storefronts 
  LEFT JOIN cscart_storefronts_currencies AS currencies ON storefronts.storefront_id = currencies.storefront_id 
WHERE 
  1 = 1 
  AND (
    currencies.currency_id IN ('1')
  )

Query time 0.00043

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "4.41"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "currencies",
          "access_type": "index",
          "possible_keys": [
            "PRIMARY",
            "idx_storefront_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "storefront_id",
            "currency_id"
          ],
          "key_length": "8",
          "rows_examined_per_scan": 6,
          "rows_produced_per_join": 1,
          "filtered": "16.67",
          "using_index": true,
          "cost_info": {
            "read_cost": "3.01",
            "eval_cost": "0.20",
            "prefix_cost": "3.21",
            "data_read_per_join": "16"
          },
          "used_columns": [
            "storefront_id",
            "currency_id"
          ],
          "attached_condition": "((`danishecarter_21_apr`.`currencies`.`currency_id` = '1') and (`danishecarter_21_apr`.`currencies`.`storefront_id` is not null))"
        }
      },
      {
        "table": {
          "table_name": "storefronts",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "storefront_id"
          ],
          "key_length": "4",
          "ref": [
            "danishecarter_21_apr.currencies.storefront_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "1.00",
            "eval_cost": "0.20",
            "prefix_cost": "4.41",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "storefront_id"
          ],
          "attached_condition": "(`danishecarter_21_apr`.`storefronts`.`storefront_id` = `danishecarter_21_apr`.`currencies`.`storefront_id`)"
        }
      }
    ]
  }
}

Result

COUNT(DISTINCT storefronts.storefront_id)
2