Among the times Mary Smith had rented a movie, how many of them happened in June, 2005?
in June 2005 refers to year(payment_date) = 2005 and month(payment_date) = 6
SELECT COUNT(T1.customer_id) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'MARY' AND T2.last_name = 'SMITH' AND STRFTIME('%Y',T1.payment_date) = '2005' AND STRFTIME('%Y', T1.payment_date) = '6'