Add numSegments() and numSynapses() to Connections

Fixes https://github.com/numenta/nupic.core/issues/226.
Yay we can use `auto` now!