Use numSegments() and numSynapses()