Write SQL query to solve given problem: How many businesses in AZ state have the beer_and_wine attribute?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id WHERE T2.attribute_value LIKE 'beer_and_wine' AND T1.state LIKE 'AZ'