Write SQL query to solve given problem: In store ID 2, how many of the films are R rating?
. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.store_id = 2 AND T1.rating = 'R'