counting id files when adding