Write SQL query to solve given problem: In 2006, how many restricted films were released?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(film_id) FROM film WHERE rating = 'R' AND release_year = 2006