Created an implemented a file counting class