days_in_month function

How many days are in a month (of given date)?