added the countPeriodsInFileName method to CamStarRepair class