Taking the count of sundays between two date ?

Hi Am using unix Ksh
Datecalc and --date functions are not working
have two input variables as

DATE=01/12/2012
DATE1=23/12/2012

Need output as

no of sundays = 4

Can anyone help me pls :frowning:

Why are you so obsessed with this problem?

"sundays between two dates"