Added (very simple) reference counter.
Merge branch 'master' of https://github.com/henry4k/apoapsis