Session: Make get_segment_count() consider all segments