Add numSegments() and numSynapses() to Connections

Fixes https://github.com/numenta/nupic.core/issues/226.
Opening brace on its own line. Use auto for the iterator? Or perhaps even like this:

```
for (auto cell : cells_)
{
  num += cell.segments.size();
}
```