Print number of segments