Script Needed

Hi Everyone , have a nice day

i am in certain directory and all files in that directory are of this format

SDPCDR_sdp05a_0189_20070320-174315.ASN~

now i want to calculate number of files based on this criteron

SDPCDR_sdp05*_*_20070301-*.ASN~

which intends to count files of sdp05 for First March 2007 and i want count for all sdps ( from 1 to 13 ) for all dates of march ( 1 to 11 )

i hope it will be an easy task for you gurus

tried 'ls' piped into 'wc -l'?