numberSegments

Returns the number of segments

Return

the number of segments