Module to count files in a given directory and as a result provide a JSON file with numbers, locations and filetypes