Write SQL query to solve given problem: How many establishments that are doing business as Homemade Pizza have a risk level of 2?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(license_no) FROM establishment WHERE risk_level = 2 AND dba_name = 'HOMEMADE PIZZA'