In order to count pretty much anything in a month, you need to know how many days there are in the month. With the first and last day of the month values, you can subtract one from the other and find out the number of days.