Number of days in current month

I have a homework assignment:

----------------------------------------
"Display" the number of days in the current month. For example:
September 1996 has 30 days
----------------------------------------

I am trying to just display the head of cal to start the sentence.
eg. cal | head

but it displays the entire calendar.

Help?

Have you looked at:
http://www.unix.com/answers-frequently-asked-questions/13785-yesterdays-date-date-arithmetic.html

Also, there is a specific forum for homework. Further homework questions are to be posted there.