Days of week in a month

Hi all, Does anyone have a formula that would return a count of the number of a particular day of the week in a given month/year? eg can Airtable tell me how many Tuesdays there are in Oct 2021?

Thanks.