title: Spring Batch -Validating number of records
body: <p>I am a newbie to Springbatch and trying to achieve the following:
  We have a file with Header, Body and Footer records, where footer consists the total number of  lines that are supposed to be in the file.
  Is there a way where I can validate the number of records in the input file with the number in the footer and throw an exception using Spring batch, if they dont match?</p>