added code to count files within given directory