Write SQL query to solve given problem: What is the total number of active businesses in AZ with a medium review count?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(business_id) FROM Business WHERE review_count = 'Medium' AND state = 'AZ' AND active = 'true'