Counter for NACHA file

I am creating a NACHA file for Old Second bank.  Their file layout requires a count of all the detail lines.  Is there a way to get a count of the detail records to show in the NACHA file?  How is that done in the "Bank File Definition" screen?  Recommendations?