added count for length of files to photo