added file counter