396.2. Examinations on discovery, whether before or after the filing of the defence, may only be held in accordance with the terms provided in the agreement between the parties or determined by the court, particularly as far as their number and length are concerned.