Pre PYQs CSAT

UPSC Prelims 2019 CSAT question 70

In the sequence 1, 5, 7, 3, 5, 7, 4, 3, 5, 7, how many such 5s are there which are not immediately preceded by 3 but are immediately followed by 7 ?