controller: track number of counted files

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>