number of segments