Help with using awk for the file

INPUT FILE1:

Fri Jan 25 12:13:59 EST 2013:threadWebContainer : 624:com.travimp.hotelierlinks.abba.service.RequestHandler.requestService(String, ITICSDataSet): hotelMakeNewReservation response:  
{Header}{version=5.1}{requestType=hotelMakeNewReservation}{resultCode=1}{sessionID=285076295965823743626150999413479632915}
  {Error}{errorCode=9002}{errorMessage=The transaction failed with link HBS_SANDALS. It returned the following error instead of the normal expected response. Failed! Please report.}

Fri Jan 25 12:18:15 EST 2013:threadThread-174156:com.travimp.hotelierlinks.abba.service.CommunicationHandler$CommunicateWithExternalLinkService.run(): Received message from [https://www.demandmatrix.net/app/
dm/xml] in [2011] milliseconds.
Fri Jan 25 12:18:15 EST 2013:threadWebContainer : 588:com.travimp.hotelierlinks.abba.service.RequestHandler.requestService(String, ITICSDataSet): hotelMakeNewReservation response:  
{Header}{version=5.1}{requestType=hotelMakeNewReservation}{resultCode=0}{sessionID=66250060096521179319873899081858860792}
  {Confirmation}{totalNetPrice=69062}{totalSellPrice=69062}{roomOfferID=169810864490756661075630431568511157029}{roomPrice=69062}{svcChargeIncluded=false}{linkConfID=CysuoWm}{currencyCode=USD}{linkVersion=0}

Fri Jan 25 12:13:59 EST 2013:threadWebContainer : 624:com.travimp.hotelierlinks.abba.service.RequestHandler.requestService(String, ITICSDataSet): hotelMakeNewReservation response:  
{Header}{version=5.1}{requestType=hotelMakeNewReservation}{resultCode=1}{sessionID=285076295965823743626150999413479632915}
  {Error}{errorCode=1008}{errorMessage=The transaction failed with link HBS_SANDALS. It returned the following error instead of the normal expected response. Failed! Please report.}

Fri Jan 25 12:13:59 EST 2013:threadWebContainer : 624:com.travimp.hotelierlinks.abba.service.RequestHandler.requestService(String, ITICSDataSet): hotelMakeNewReservation response:  
{Header}{version=5.1}{requestType=hotelMakeNewReservation}{resultCode=1}{sessionID=285076295965823743626150999413479632915}
  {Error}{errorCode=2674}{errorMessage=The transaction failed with link HBS_SANDALS. It returned the following error instead of the normal expected response. Failed! Please report.}

IN INPUT FILE1 need to grep "errorCode=" and increment the counter each time in file "errorCode=" occurs and send an email when counter reaches the max value 10. then again reset the counter to 0(zero) and start again.

What about grep -c ?

awk '/errorCode=/{++c}c==10{print "Email Body" | "mail -s \"Subject\" user@domain.com"; c=0;}' inputfile