egrep problem

Hello Experts,
I am trying to parse a gz file like this
gzip -cd filename | xargs egrep -h -e '.*somepattern</TAG>' | grep -c '<TAG2>`date '+%Y-%m-%d'`</TAG2>'
But I am getting an error :
egrep cant open.
Any ideas fellas?

gzip -cd filename | egrep -h -e '.*somepattern</TAG>' | grep -c '<TAG2>`date '+%Y-%m-%d'`</TAG2>'

Also the `date ...` command will not execute because it is inside ' ' (single quotes).

mydate=>`date '+%Y-%m-%d'`
gzip -cd filename | egrep -h -e '.*somepattern</TAG>' | grep -c "<TAG2>$mydate</TAG2>"