Calculate the number of a specific day in a month


As a person employing a maid,
I need to know the number of fridays in a month,
In order to know how much to pay her.

I want my user to select a year and a month and the system displays the number of fridays this months.

Does it exist a function to do that? Thx.