Add file counter for database post-processing