Added file counter to xml processor