collecting amount of db_files entries with reference to a file