is there a dynamic way to determine this? eg count files or soemthing like that?