Number of positions (at most num_times).
Trajectory
pure integer function num_positions(self) class(Trajectory), intent(in) :: self num_positions = self%n_pos end function num_positions