#8 refactor Space Counter code