insert framework code for counting files
adjust sprintf matching based on number of expected files
use the globbed count of files
retab everything
remove trailing whitespace