Wrote the "count-change" method in Clojure