Set up count data and directory structure