function to get an integer containing the available directions added in the check files