refactor minimalist implementation for countChange
incremental improvements to countChange for minimalist examples
everything working but not performant