count and store nbFiles + begin interface